diff --git a/openapi-raw.yaml b/openapi-raw.yaml
index 14ccac22a..a403e49c4 100644
--- a/openapi-raw.yaml
+++ b/openapi-raw.yaml
@@ -9533,6 +9533,9 @@ components:
description: '_t__Sub::UpdateFormField::NAME'
type: string
type: object
+ x-hideOn:
+ - sdk
+ - doc
SubFormFieldsPerDocumentHyperlink:
description: '_t__Sub::FormFieldsPerDocument::DESCRIPTION_EXTENDS'
allOf:
diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml
index f2497b6e8..ed174d3ca 100644
--- a/openapi-sdk.yaml
+++ b/openapi-sdk.yaml
@@ -9824,17 +9824,6 @@ components:
type: integer
default: 12
type: object
- SubUpdateFormField:
- required:
- - api_id
- properties:
- api_id:
- description: 'The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found'
- type: string
- name:
- description: 'The new name of the field. If not passed the name will remain unchanged.'
- type: string
- type: object
SubFormFieldsPerDocumentHyperlink:
description: 'This class extends `SubFormFieldsPerDocumentBase`.'
allOf:
diff --git a/openapi.yaml b/openapi.yaml
index f75975178..41e64091d 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -9804,17 +9804,6 @@ components:
type: integer
default: 12
type: object
- SubUpdateFormField:
- required:
- - api_id
- properties:
- api_id:
- description: 'The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found'
- type: string
- name:
- description: 'The new name of the field. If not passed the name will remain unchanged.'
- type: string
- type: object
SubFormFieldsPerDocumentHyperlink:
description: 'This class extends `SubFormFieldsPerDocumentBase`.'
allOf:
diff --git a/sdks/dotnet/README.md b/sdks/dotnet/README.md
index 74ca42eb0..32be7f086 100644
--- a/sdks/dotnet/README.md
+++ b/sdks/dotnet/README.md
@@ -336,7 +336,6 @@ Class | Method | HTTP request | Description
- [Model.SubTemplateRole](docs/SubTemplateRole.md)
- [Model.SubUnclaimedDraftSigner](docs/SubUnclaimedDraftSigner.md)
- [Model.SubUnclaimedDraftTemplateSigner](docs/SubUnclaimedDraftTemplateSigner.md)
- - [Model.SubUpdateFormField](docs/SubUpdateFormField.md)
- [Model.SubWhiteLabelingOptions](docs/SubWhiteLabelingOptions.md)
- [Model.TeamAddMemberRequest](docs/TeamAddMemberRequest.md)
- [Model.TeamCreateRequest](docs/TeamCreateRequest.md)
diff --git a/sdks/dotnet/docs/SubUpdateFormField.md b/sdks/dotnet/docs/SubUpdateFormField.md
deleted file mode 100644
index 2760bfbd9..000000000
--- a/sdks/dotnet/docs/SubUpdateFormField.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Dropbox.Sign.Model.SubUpdateFormField
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ApiId** | **string** | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | **Name** | **string** | The new name of the field. If not passed the name will remain unchanged. | [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/SubUpdateFormField.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SubUpdateFormField.cs
deleted file mode 100644
index 18dde7b0f..000000000
--- a/sdks/dotnet/src/Dropbox.Sign/Model/SubUpdateFormField.cs
+++ /dev/null
@@ -1,197 +0,0 @@
-/*
- * Dropbox Sign API
- *
- * Dropbox Sign v3 API
- *
- * The version of the OpenAPI document: 3.0.0
- * Contact: apisupport@hellosign.com
- * Generated by: https://github.com/openapitools/openapi-generator.git
- */
-
-
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.IO;
-using System.Runtime.Serialization;
-using System.Text;
-using System.Text.RegularExpressions;
-using Newtonsoft.Json;
-using Newtonsoft.Json.Converters;
-using Newtonsoft.Json.Linq;
-using System.ComponentModel.DataAnnotations;
-using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter;
-
-namespace Dropbox.Sign.Model
-{
- ///
- /// SubUpdateFormField
- ///
- [DataContract(Name = "SubUpdateFormField")]
- [JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
- public partial class SubUpdateFormField : IEquatable, IValidatableObject
- {
- ///
- /// Initializes a new instance of the class.
- ///
- [JsonConstructorAttribute]
- protected SubUpdateFormField() { }
- ///
- /// Initializes a new instance of the class.
- ///
- /// The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found (required).
- /// The new name of the field. If not passed the name will remain unchanged..
- public SubUpdateFormField(string apiId = default(string), string name = default(string))
- {
-
- // to ensure "apiId" is required (not null)
- if (apiId == null)
- {
- throw new ArgumentNullException("apiId is a required property for SubUpdateFormField and cannot be null");
- }
- this.ApiId = apiId;
- this.Name = name;
- }
-
- ///
- /// Attempt to instantiate and hydrate a new instance of this class
- ///
- /// String of JSON data representing target object
- public static SubUpdateFormField Init(string jsonData)
- {
- var obj = JsonConvert.DeserializeObject(jsonData);
-
- if (obj == null)
- {
- throw new Exception("Unable to deserialize JSON to instance of SubUpdateFormField");
- }
-
- return obj;
- }
-
- ///
- /// The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
- ///
- /// The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
- [DataMember(Name = "api_id", IsRequired = true, EmitDefaultValue = true)]
- public string ApiId { get; set; }
-
- ///
- /// The new name of the field. If not passed the name will remain unchanged.
- ///
- /// The new name of the field. If not passed the name will remain unchanged.
- [DataMember(Name = "name", EmitDefaultValue = true)]
- public string Name { get; set; }
-
- ///
- /// Returns the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString()
- {
- StringBuilder sb = new StringBuilder();
- sb.Append("class SubUpdateFormField {\n");
- sb.Append(" ApiId: ").Append(ApiId).Append("\n");
- sb.Append(" Name: ").Append(Name).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Returns the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public virtual string ToJson()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
- }
-
- ///
- /// Returns true if objects are equal
- ///
- /// Object to be compared
- /// Boolean
- public override bool Equals(object input)
- {
- return this.Equals(input as SubUpdateFormField);
- }
-
- ///
- /// Returns true if SubUpdateFormField instances are equal
- ///
- /// Instance of SubUpdateFormField to be compared
- /// Boolean
- public bool Equals(SubUpdateFormField input)
- {
- if (input == null)
- {
- return false;
- }
- return
- (
- this.ApiId == input.ApiId ||
- (this.ApiId != null &&
- this.ApiId.Equals(input.ApiId))
- ) &&
- (
- this.Name == input.Name ||
- (this.Name != null &&
- this.Name.Equals(input.Name))
- );
- }
-
- ///
- /// Gets the hash code
- ///
- /// Hash code
- public override int GetHashCode()
- {
- unchecked // Overflow is fine, just wrap
- {
- int hashCode = 41;
- if (this.ApiId != null)
- {
- hashCode = (hashCode * 59) + this.ApiId.GetHashCode();
- }
- if (this.Name != null)
- {
- hashCode = (hashCode * 59) + this.Name.GetHashCode();
- }
- return hashCode;
- }
- }
-
- ///
- /// To validate all properties of the instance
- ///
- /// Validation context
- /// Validation Result
- IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
- {
- yield break;
- }
- public List GetOpenApiTypes()
- {
- var types = new List();
- types.Add(new OpenApiType()
- {
- Name = "api_id",
- Property = "ApiId",
- Type = "string",
- Value = ApiId,
- });
- types.Add(new OpenApiType()
- {
- Name = "name",
- Property = "Name",
- Type = "string",
- Value = Name,
- });
-
- return types;
- }
- }
-
-}
diff --git a/sdks/java-v1/README.md b/sdks/java-v1/README.md
index bd8decae3..26192ef39 100644
--- a/sdks/java-v1/README.md
+++ b/sdks/java-v1/README.md
@@ -378,7 +378,6 @@ Class | Method | HTTP request | Description
- [SubTemplateRole](docs/SubTemplateRole.md)
- [SubUnclaimedDraftSigner](docs/SubUnclaimedDraftSigner.md)
- [SubUnclaimedDraftTemplateSigner](docs/SubUnclaimedDraftTemplateSigner.md)
- - [SubUpdateFormField](docs/SubUpdateFormField.md)
- [SubWhiteLabelingOptions](docs/SubWhiteLabelingOptions.md)
- [TeamAddMemberRequest](docs/TeamAddMemberRequest.md)
- [TeamCreateRequest](docs/TeamCreateRequest.md)
diff --git a/sdks/java-v1/docs/SubUpdateFormField.md b/sdks/java-v1/docs/SubUpdateFormField.md
deleted file mode 100644
index 0f09c17e9..000000000
--- a/sdks/java-v1/docs/SubUpdateFormField.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# SubUpdateFormField
-
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-| `apiId`*_required_ | ```String``` | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | |
-| `name` | ```String``` | The new name of the field. If not passed the name will remain unchanged. | |
-
-
-
diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUpdateFormField.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUpdateFormField.java
deleted file mode 100644
index 65e0fe1c9..000000000
--- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SubUpdateFormField.java
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * Dropbox Sign API
- * Dropbox Sign v3 API
- *
- * The version of the OpenAPI document: 3.0.0
- * Contact: apisupport@hellosign.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package com.dropbox.sign.model;
-
-import com.dropbox.sign.ApiException;
-import com.dropbox.sign.JSON;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Objects;
-
-/** SubUpdateFormField */
-@JsonPropertyOrder({SubUpdateFormField.JSON_PROPERTY_API_ID, SubUpdateFormField.JSON_PROPERTY_NAME})
-@javax.annotation.Generated(
- value = "org.openapitools.codegen.languages.JavaClientCodegen",
- comments = "Generator version: 7.12.0")
-@JsonIgnoreProperties(ignoreUnknown = true)
-public class SubUpdateFormField {
- public static final String JSON_PROPERTY_API_ID = "api_id";
- @javax.annotation.Nonnull private String apiId;
-
- public static final String JSON_PROPERTY_NAME = "name";
- @javax.annotation.Nullable private String name;
-
- public SubUpdateFormField() {}
-
- /**
- * Attempt to instantiate and hydrate a new instance of this class
- *
- * @param jsonData String of JSON data representing target object
- */
- public static SubUpdateFormField init(String jsonData) throws Exception {
- return new ObjectMapper().readValue(jsonData, SubUpdateFormField.class);
- }
-
- public static SubUpdateFormField init(HashMap data) throws Exception {
- return new ObjectMapper()
- .readValue(new ObjectMapper().writeValueAsString(data), SubUpdateFormField.class);
- }
-
- public SubUpdateFormField apiId(@javax.annotation.Nonnull String apiId) {
- this.apiId = apiId;
- return this;
- }
-
- /**
- * The unique ID for this field. The endpoint will update an existing field with matching
- * `api_id`, and warn you if no matches are found
- *
- * @return apiId
- */
- @javax.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_API_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public String getApiId() {
- return apiId;
- }
-
- @JsonProperty(JSON_PROPERTY_API_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setApiId(@javax.annotation.Nonnull String apiId) {
- this.apiId = apiId;
- }
-
- public SubUpdateFormField name(@javax.annotation.Nullable String name) {
- this.name = name;
- return this;
- }
-
- /**
- * The new name of the field. If not passed the name will remain unchanged.
- *
- * @return name
- */
- @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public String getName() {
- return name;
- }
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setName(@javax.annotation.Nullable String name) {
- this.name = name;
- }
-
- /** Return true if this SubUpdateFormField object is equal to o. */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SubUpdateFormField subUpdateFormField = (SubUpdateFormField) o;
- return Objects.equals(this.apiId, subUpdateFormField.apiId)
- && Objects.equals(this.name, subUpdateFormField.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(apiId, name);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SubUpdateFormField {\n");
- sb.append(" apiId: ").append(toIndentedString(apiId)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- public Map createFormData() throws ApiException {
- Map map = new HashMap<>();
- boolean fileTypeFound = false;
- try {
- if (apiId != null) {
- if (isFileTypeOrListOfFiles(apiId)) {
- fileTypeFound = true;
- }
-
- if (apiId.getClass().equals(java.io.File.class)
- || apiId.getClass().equals(Integer.class)
- || apiId.getClass().equals(String.class)
- || apiId.getClass().isEnum()) {
- map.put("api_id", apiId);
- } else if (isListOfFile(apiId)) {
- for (int i = 0; i < getListSize(apiId); i++) {
- map.put("api_id[" + i + "]", getFromList(apiId, i));
- }
- } else {
- map.put("api_id", JSON.getDefault().getMapper().writeValueAsString(apiId));
- }
- }
- if (name != null) {
- if (isFileTypeOrListOfFiles(name)) {
- fileTypeFound = true;
- }
-
- if (name.getClass().equals(java.io.File.class)
- || name.getClass().equals(Integer.class)
- || name.getClass().equals(String.class)
- || name.getClass().isEnum()) {
- map.put("name", name);
- } else if (isListOfFile(name)) {
- for (int i = 0; i < getListSize(name); i++) {
- map.put("name[" + i + "]", getFromList(name, i));
- }
- } else {
- map.put("name", JSON.getDefault().getMapper().writeValueAsString(name));
- }
- }
- } catch (Exception e) {
- throw new ApiException(e);
- }
-
- return fileTypeFound ? map : new HashMap<>();
- }
-
- private boolean isFileTypeOrListOfFiles(Object obj) throws Exception {
- return obj.getClass().equals(java.io.File.class) || isListOfFile(obj);
- }
-
- private boolean isListOfFile(Object obj) throws Exception {
- return obj instanceof java.util.List
- && !isListEmpty(obj)
- && getFromList(obj, 0) instanceof java.io.File;
- }
-
- private boolean isListEmpty(Object obj) throws Exception {
- return (boolean)
- Class.forName(java.util.List.class.getName()).getMethod("isEmpty").invoke(obj);
- }
-
- private Object getFromList(Object obj, int index) throws Exception {
- return Class.forName(java.util.List.class.getName())
- .getMethod("get", int.class)
- .invoke(obj, index);
- }
-
- private int getListSize(Object obj) throws Exception {
- return (int) Class.forName(java.util.List.class.getName()).getMethod("size").invoke(obj);
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces (except the first
- * line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-}
diff --git a/sdks/java-v2/README.md b/sdks/java-v2/README.md
index f498e99e7..944eb8465 100644
--- a/sdks/java-v2/README.md
+++ b/sdks/java-v2/README.md
@@ -354,7 +354,6 @@ Class | Method | HTTP request | Description
- [SubTemplateRole](docs/SubTemplateRole.md)
- [SubUnclaimedDraftSigner](docs/SubUnclaimedDraftSigner.md)
- [SubUnclaimedDraftTemplateSigner](docs/SubUnclaimedDraftTemplateSigner.md)
- - [SubUpdateFormField](docs/SubUpdateFormField.md)
- [SubWhiteLabelingOptions](docs/SubWhiteLabelingOptions.md)
- [TeamAddMemberRequest](docs/TeamAddMemberRequest.md)
- [TeamCreateRequest](docs/TeamCreateRequest.md)
diff --git a/sdks/java-v2/docs/SubUpdateFormField.md b/sdks/java-v2/docs/SubUpdateFormField.md
deleted file mode 100644
index 0f09c17e9..000000000
--- a/sdks/java-v2/docs/SubUpdateFormField.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-# SubUpdateFormField
-
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-|------------ | ------------- | ------------- | -------------|
-| `apiId`*_required_ | ```String``` | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | |
-| `name` | ```String``` | The new name of the field. If not passed the name will remain unchanged. | |
-
-
-
diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUpdateFormField.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUpdateFormField.java
deleted file mode 100644
index 1c9fe6b84..000000000
--- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SubUpdateFormField.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * Dropbox Sign API
- * Dropbox Sign v3 API
- *
- * The version of the OpenAPI document: 3.0.0
- * Contact: apisupport@hellosign.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package com.dropbox.sign.model;
-
-import java.util.Objects;
-import java.util.Map;
-import java.util.HashMap;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonTypeName;
-import com.fasterxml.jackson.annotation.JsonValue;
-import java.util.Arrays;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import com.dropbox.sign.JSON;
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-
-import com.dropbox.sign.ApiException;
-/**
- * SubUpdateFormField
- */
-@JsonPropertyOrder({
- SubUpdateFormField.JSON_PROPERTY_API_ID,
- SubUpdateFormField.JSON_PROPERTY_NAME
-})
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0")
-@JsonIgnoreProperties(ignoreUnknown=true)
-public class SubUpdateFormField {
- public static final String JSON_PROPERTY_API_ID = "api_id";
- @jakarta.annotation.Nonnull
- private String apiId;
-
- public static final String JSON_PROPERTY_NAME = "name";
- @jakarta.annotation.Nullable
- private String name;
-
- public SubUpdateFormField() {
- }
-
- /**
- * Attempt to instantiate and hydrate a new instance of this class
- * @param jsonData String of JSON data representing target object
- */
- static public SubUpdateFormField init(String jsonData) throws Exception {
- return new ObjectMapper().readValue(jsonData, SubUpdateFormField.class);
- }
-
- static public SubUpdateFormField init(HashMap data) throws Exception {
- return new ObjectMapper().readValue(
- new ObjectMapper().writeValueAsString(data),
- SubUpdateFormField.class
- );
- }
-
- public SubUpdateFormField apiId(@jakarta.annotation.Nonnull String apiId) {
- this.apiId = apiId;
- return this;
- }
-
- /**
- * The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
- * @return apiId
- */
- @jakarta.annotation.Nonnull
- @JsonProperty(JSON_PROPERTY_API_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
-
- public String getApiId() {
- return apiId;
- }
-
-
- @JsonProperty(JSON_PROPERTY_API_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
- public void setApiId(@jakarta.annotation.Nonnull String apiId) {
- this.apiId = apiId;
- }
-
-
- public SubUpdateFormField name(@jakarta.annotation.Nullable String name) {
- this.name = name;
- return this;
- }
-
- /**
- * The new name of the field. If not passed the name will remain unchanged.
- * @return name
- */
- @jakarta.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public String getName() {
- return name;
- }
-
-
- @JsonProperty(JSON_PROPERTY_NAME)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setName(@jakarta.annotation.Nullable String name) {
- this.name = name;
- }
-
-
- /**
- * Return true if this SubUpdateFormField object is equal to o.
- */
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SubUpdateFormField subUpdateFormField = (SubUpdateFormField) o;
- return Objects.equals(this.apiId, subUpdateFormField.apiId) &&
- Objects.equals(this.name, subUpdateFormField.name);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(apiId, name);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SubUpdateFormField {\n");
- sb.append(" apiId: ").append(toIndentedString(apiId)).append("\n");
- sb.append(" name: ").append(toIndentedString(name)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- public Map createFormData() throws ApiException {
- Map map = new HashMap<>();
- boolean fileTypeFound = false;
- try {
- if (apiId != null) {
- if (isFileTypeOrListOfFiles(apiId)) {
- fileTypeFound = true;
- }
-
- if (apiId.getClass().equals(java.io.File.class) ||
- apiId.getClass().equals(Integer.class) ||
- apiId.getClass().equals(String.class) ||
- apiId.getClass().isEnum()) {
- map.put("api_id", apiId);
- } else if (isListOfFile(apiId)) {
- for(int i = 0; i< getListSize(apiId); i++) {
- map.put("api_id[" + i + "]", getFromList(apiId, i));
- }
- }
- else {
- map.put("api_id", JSON.getDefault().getMapper().writeValueAsString(apiId));
- }
- }
- if (name != null) {
- if (isFileTypeOrListOfFiles(name)) {
- fileTypeFound = true;
- }
-
- if (name.getClass().equals(java.io.File.class) ||
- name.getClass().equals(Integer.class) ||
- name.getClass().equals(String.class) ||
- name.getClass().isEnum()) {
- map.put("name", name);
- } else if (isListOfFile(name)) {
- for(int i = 0; i< getListSize(name); i++) {
- map.put("name[" + i + "]", getFromList(name, i));
- }
- }
- else {
- map.put("name", JSON.getDefault().getMapper().writeValueAsString(name));
- }
- }
- } catch (Exception e) {
- throw new ApiException(e);
- }
-
- return fileTypeFound ? map : new HashMap<>();
- }
-
- private boolean isFileTypeOrListOfFiles(Object obj) throws Exception {
- return obj.getClass().equals(java.io.File.class) || isListOfFile(obj);
- }
-
- private boolean isListOfFile(Object obj) throws Exception {
- return obj instanceof java.util.List && !isListEmpty(obj) && getFromList(obj, 0) instanceof java.io.File;
- }
-
- private boolean isListEmpty(Object obj) throws Exception {
- return (boolean) Class.forName(java.util.List.class.getName()).getMethod("isEmpty").invoke(obj);
- }
-
- private Object getFromList(Object obj, int index) throws Exception {
- return Class.forName(java.util.List.class.getName()).getMethod("get", int.class).invoke(obj, index);
- }
-
- private int getListSize(Object obj) throws Exception {
- return (int) Class.forName(java.util.List.class.getName()).getMethod("size").invoke(obj);
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/sdks/node/README.md b/sdks/node/README.md
index 7e2b78e3b..bb45ec624 100644
--- a/sdks/node/README.md
+++ b/sdks/node/README.md
@@ -282,7 +282,6 @@ All URIs are relative to *https://api.hellosign.com/v3*
- [SubTemplateRole](./docs/model/SubTemplateRole.md)
- [SubUnclaimedDraftSigner](./docs/model/SubUnclaimedDraftSigner.md)
- [SubUnclaimedDraftTemplateSigner](./docs/model/SubUnclaimedDraftTemplateSigner.md)
-- [SubUpdateFormField](./docs/model/SubUpdateFormField.md)
- [SubWhiteLabelingOptions](./docs/model/SubWhiteLabelingOptions.md)
- [TeamAddMemberRequest](./docs/model/TeamAddMemberRequest.md)
- [TeamCreateRequest](./docs/model/TeamCreateRequest.md)
diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js
index b5e3b1398..28db3c0fc 100644
--- a/sdks/node/dist/api.js
+++ b/sdks/node/dist/api.js
@@ -13287,7 +13287,6 @@ __export(api_exports, {
SubTemplateRole: () => SubTemplateRole,
SubUnclaimedDraftSigner: () => SubUnclaimedDraftSigner,
SubUnclaimedDraftTemplateSigner: () => SubUnclaimedDraftTemplateSigner,
- SubUpdateFormField: () => SubUpdateFormField,
SubWhiteLabelingOptions: () => SubWhiteLabelingOptions,
TeamAddMemberRequest: () => TeamAddMemberRequest,
TeamApi: () => TeamApi,
@@ -23316,34 +23315,6 @@ var SubUnclaimedDraftTemplateSigner = class _SubUnclaimedDraftTemplateSigner {
}
};
-// model/subUpdateFormField.ts
-var SubUpdateFormField = class _SubUpdateFormField {
- static {
- this.discriminator = void 0;
- }
- static {
- this.attributeTypeMap = [
- {
- name: "apiId",
- baseName: "api_id",
- type: "string"
- },
- {
- name: "name",
- baseName: "name",
- type: "string"
- }
- ];
- }
- static getAttributeTypeMap() {
- return _SubUpdateFormField.attributeTypeMap;
- }
- /** Attempt to instantiate and hydrate a new instance of this class */
- static init(data) {
- return ObjectSerializer.deserialize(data, "SubUpdateFormField");
- }
-};
-
// model/subWhiteLabelingOptions.ts
var SubWhiteLabelingOptions = class _SubWhiteLabelingOptions {
constructor() {
@@ -26973,7 +26944,6 @@ var typeMap = {
SubTemplateRole,
SubUnclaimedDraftSigner,
SubUnclaimedDraftTemplateSigner,
- SubUpdateFormField,
SubWhiteLabelingOptions,
TeamAddMemberRequest,
TeamCreateRequest,
@@ -36509,7 +36479,6 @@ var APIS = [
SubTemplateRole,
SubUnclaimedDraftSigner,
SubUnclaimedDraftTemplateSigner,
- SubUpdateFormField,
SubWhiteLabelingOptions,
TeamAddMemberRequest,
TeamApi,
diff --git a/sdks/node/docs/model/SubUpdateFormField.md b/sdks/node/docs/model/SubUpdateFormField.md
deleted file mode 100644
index 2228401c2..000000000
--- a/sdks/node/docs/model/SubUpdateFormField.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# # SubUpdateFormField
-
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-| `apiId`*_required_ | ```string``` | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | |
-| `name` | ```string``` | The new name of the field. If not passed the name will remain unchanged. | |
-
-[[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/index.ts b/sdks/node/model/index.ts
index c30e4c127..47632382b 100644
--- a/sdks/node/model/index.ts
+++ b/sdks/node/model/index.ts
@@ -139,7 +139,6 @@ import { SubTeamResponse } from "./subTeamResponse";
import { SubTemplateRole } from "./subTemplateRole";
import { SubUnclaimedDraftSigner } from "./subUnclaimedDraftSigner";
import { SubUnclaimedDraftTemplateSigner } from "./subUnclaimedDraftTemplateSigner";
-import { SubUpdateFormField } from "./subUpdateFormField";
import { SubWhiteLabelingOptions } from "./subWhiteLabelingOptions";
import { TeamAddMemberRequest } from "./teamAddMemberRequest";
import { TeamCreateRequest } from "./teamCreateRequest";
@@ -394,7 +393,6 @@ export let typeMap: { [index: string]: any } = {
SubTemplateRole: SubTemplateRole,
SubUnclaimedDraftSigner: SubUnclaimedDraftSigner,
SubUnclaimedDraftTemplateSigner: SubUnclaimedDraftTemplateSigner,
- SubUpdateFormField: SubUpdateFormField,
SubWhiteLabelingOptions: SubWhiteLabelingOptions,
TeamAddMemberRequest: TeamAddMemberRequest,
TeamCreateRequest: TeamCreateRequest,
@@ -623,7 +621,6 @@ export {
SubTemplateRole,
SubUnclaimedDraftSigner,
SubUnclaimedDraftTemplateSigner,
- SubUpdateFormField,
SubWhiteLabelingOptions,
TeamAddMemberRequest,
TeamCreateRequest,
diff --git a/sdks/node/model/subUpdateFormField.ts b/sdks/node/model/subUpdateFormField.ts
deleted file mode 100644
index 50f206cf7..000000000
--- a/sdks/node/model/subUpdateFormField.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * The MIT License (MIT)
- *
- * Copyright (C) 2023 dropbox.com
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import { AttributeTypeMap, ObjectSerializer } from "./";
-
-export class SubUpdateFormField {
- /**
- * The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
- */
- "apiId": string;
- /**
- * The new name of the field. If not passed the name will remain unchanged.
- */
- "name"?: string;
-
- static discriminator: string | undefined = undefined;
-
- static attributeTypeMap: AttributeTypeMap = [
- {
- name: "apiId",
- baseName: "api_id",
- type: "string",
- },
- {
- name: "name",
- baseName: "name",
- type: "string",
- },
- ];
-
- static getAttributeTypeMap(): AttributeTypeMap {
- return SubUpdateFormField.attributeTypeMap;
- }
-
- /** Attempt to instantiate and hydrate a new instance of this class */
- static init(data: any): SubUpdateFormField {
- return ObjectSerializer.deserialize(data, "SubUpdateFormField");
- }
-}
diff --git a/sdks/node/types/model/index.d.ts b/sdks/node/types/model/index.d.ts
index 198242dc3..d36185eb5 100644
--- a/sdks/node/types/model/index.d.ts
+++ b/sdks/node/types/model/index.d.ts
@@ -127,7 +127,6 @@ import { SubTeamResponse } from "./subTeamResponse";
import { SubTemplateRole } from "./subTemplateRole";
import { SubUnclaimedDraftSigner } from "./subUnclaimedDraftSigner";
import { SubUnclaimedDraftTemplateSigner } from "./subUnclaimedDraftTemplateSigner";
-import { SubUpdateFormField } from "./subUpdateFormField";
import { SubWhiteLabelingOptions } from "./subWhiteLabelingOptions";
import { TeamAddMemberRequest } from "./teamAddMemberRequest";
import { TeamCreateRequest } from "./teamCreateRequest";
@@ -199,4 +198,4 @@ export declare let enumsMap: {
export declare let typeMap: {
[index: string]: any;
};
-export { AccountCreateRequest, AccountCreateResponse, AccountGetResponse, AccountResponse, AccountResponseQuotas, AccountResponseSettings, AccountResponseUsage, AccountUpdateRequest, AccountVerifyRequest, AccountVerifyResponse, AccountVerifyResponseAccount, ApiAppCreateRequest, ApiAppGetResponse, ApiAppListResponse, ApiAppResponse, ApiAppResponseOAuth, ApiAppResponseOptions, ApiAppResponseOwnerAccount, ApiAppResponseWhiteLabelingOptions, ApiAppUpdateRequest, ApiKeyAuth, AttributeTypeMap, Authentication, BulkSendJobGetResponse, BulkSendJobGetResponseSignatureRequests, BulkSendJobListResponse, BulkSendJobResponse, BulkSendJobSendResponse, EmbeddedEditUrlRequest, EmbeddedEditUrlResponse, EmbeddedEditUrlResponseEmbedded, EmbeddedSignUrlResponse, EmbeddedSignUrlResponseEmbedded, ErrorResponse, ErrorResponseError, EventCallbackHelper, EventCallbackRequest, EventCallbackRequestEvent, EventCallbackRequestEventMetadata, FaxGetResponse, FaxLineAddUserRequest, FaxLineAreaCodeGetCountryEnum, FaxLineAreaCodeGetProvinceEnum, FaxLineAreaCodeGetResponse, FaxLineAreaCodeGetStateEnum, FaxLineCreateRequest, FaxLineDeleteRequest, FaxLineListResponse, FaxLineRemoveUserRequest, FaxLineResponse, FaxLineResponseFaxLine, FaxListResponse, FaxResponse, FaxResponseTransmission, FaxSendRequest, FileResponse, FileResponseDataUri, HttpBasicAuth, HttpBearerAuth, Interceptor, ListInfoResponse, OAuth, OAuthTokenGenerateRequest, OAuthTokenRefreshRequest, OAuthTokenResponse, ObjectSerializer, ReportCreateRequest, ReportCreateResponse, ReportResponse, RequestDetailedFile, RequestFile, SignatureRequestBulkCreateEmbeddedWithTemplateRequest, SignatureRequestBulkSendWithTemplateRequest, SignatureRequestCreateEmbeddedRequest, SignatureRequestCreateEmbeddedWithTemplateRequest, SignatureRequestEditEmbeddedRequest, SignatureRequestEditEmbeddedWithTemplateRequest, SignatureRequestEditRequest, SignatureRequestEditWithTemplateRequest, SignatureRequestGetResponse, SignatureRequestListResponse, SignatureRequestRemindRequest, SignatureRequestResponse, SignatureRequestResponseAttachment, SignatureRequestResponseCustomFieldBase, SignatureRequestResponseCustomFieldCheckbox, SignatureRequestResponseCustomFieldText, SignatureRequestResponseCustomFieldTypeEnum, SignatureRequestResponseDataBase, SignatureRequestResponseDataTypeEnum, SignatureRequestResponseDataValueCheckbox, SignatureRequestResponseDataValueCheckboxMerge, SignatureRequestResponseDataValueDateSigned, SignatureRequestResponseDataValueDropdown, SignatureRequestResponseDataValueInitials, SignatureRequestResponseDataValueRadio, SignatureRequestResponseDataValueSignature, SignatureRequestResponseDataValueText, SignatureRequestResponseDataValueTextMerge, SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, SubBulkSignerListCustomField, SubCC, SubCustomField, SubEditorOptions, SubFieldOptions, SubFormFieldGroup, SubFormFieldRule, SubFormFieldRuleAction, SubFormFieldRuleTrigger, SubFormFieldsPerDocumentBase, SubFormFieldsPerDocumentCheckbox, SubFormFieldsPerDocumentCheckboxMerge, SubFormFieldsPerDocumentDateSigned, SubFormFieldsPerDocumentDropdown, SubFormFieldsPerDocumentFontEnum, SubFormFieldsPerDocumentHyperlink, SubFormFieldsPerDocumentInitials, SubFormFieldsPerDocumentRadio, SubFormFieldsPerDocumentSignature, SubFormFieldsPerDocumentText, SubFormFieldsPerDocumentTextMerge, SubFormFieldsPerDocumentTypeEnum, SubMergeField, SubOAuth, SubOptions, SubSignatureRequestGroupedSigners, SubSignatureRequestSigner, SubSignatureRequestTemplateSigner, SubSigningOptions, SubTeamResponse, SubTemplateRole, SubUnclaimedDraftSigner, SubUnclaimedDraftTemplateSigner, SubUpdateFormField, SubWhiteLabelingOptions, TeamAddMemberRequest, TeamCreateRequest, TeamGetInfoResponse, TeamGetResponse, TeamInfoResponse, TeamInviteResponse, TeamInvitesResponse, TeamMemberResponse, TeamMembersResponse, TeamParentResponse, TeamRemoveMemberRequest, TeamResponse, TeamSubTeamsResponse, TeamUpdateRequest, TemplateAddUserRequest, TemplateCreateEmbeddedDraftRequest, TemplateCreateEmbeddedDraftResponse, TemplateCreateEmbeddedDraftResponseTemplate, TemplateCreateRequest, TemplateCreateResponse, TemplateCreateResponseTemplate, TemplateGetResponse, TemplateListResponse, TemplateRemoveUserRequest, TemplateResponse, TemplateResponseAccount, TemplateResponseAccountQuota, TemplateResponseCCRole, TemplateResponseDocument, TemplateResponseDocumentCustomFieldBase, TemplateResponseDocumentCustomFieldCheckbox, TemplateResponseDocumentCustomFieldText, TemplateResponseDocumentFieldGroup, TemplateResponseDocumentFieldGroupRule, TemplateResponseDocumentFormFieldBase, TemplateResponseDocumentFormFieldCheckbox, TemplateResponseDocumentFormFieldDateSigned, TemplateResponseDocumentFormFieldDropdown, TemplateResponseDocumentFormFieldHyperlink, TemplateResponseDocumentFormFieldInitials, TemplateResponseDocumentFormFieldRadio, TemplateResponseDocumentFormFieldSignature, TemplateResponseDocumentFormFieldText, TemplateResponseDocumentStaticFieldBase, TemplateResponseDocumentStaticFieldCheckbox, TemplateResponseDocumentStaticFieldDateSigned, TemplateResponseDocumentStaticFieldDropdown, TemplateResponseDocumentStaticFieldHyperlink, TemplateResponseDocumentStaticFieldInitials, TemplateResponseDocumentStaticFieldRadio, TemplateResponseDocumentStaticFieldSignature, TemplateResponseDocumentStaticFieldText, TemplateResponseFieldAvgTextLength, TemplateResponseSignerRole, TemplateUpdateFilesRequest, TemplateUpdateFilesResponse, TemplateUpdateFilesResponseTemplate, UnclaimedDraftCreateEmbeddedRequest, UnclaimedDraftCreateEmbeddedWithTemplateRequest, UnclaimedDraftCreateRequest, UnclaimedDraftCreateResponse, UnclaimedDraftEditAndResendRequest, UnclaimedDraftResponse, VoidAuth, WarningResponse, };
+export { AccountCreateRequest, AccountCreateResponse, AccountGetResponse, AccountResponse, AccountResponseQuotas, AccountResponseSettings, AccountResponseUsage, AccountUpdateRequest, AccountVerifyRequest, AccountVerifyResponse, AccountVerifyResponseAccount, ApiAppCreateRequest, ApiAppGetResponse, ApiAppListResponse, ApiAppResponse, ApiAppResponseOAuth, ApiAppResponseOptions, ApiAppResponseOwnerAccount, ApiAppResponseWhiteLabelingOptions, ApiAppUpdateRequest, ApiKeyAuth, AttributeTypeMap, Authentication, BulkSendJobGetResponse, BulkSendJobGetResponseSignatureRequests, BulkSendJobListResponse, BulkSendJobResponse, BulkSendJobSendResponse, EmbeddedEditUrlRequest, EmbeddedEditUrlResponse, EmbeddedEditUrlResponseEmbedded, EmbeddedSignUrlResponse, EmbeddedSignUrlResponseEmbedded, ErrorResponse, ErrorResponseError, EventCallbackHelper, EventCallbackRequest, EventCallbackRequestEvent, EventCallbackRequestEventMetadata, FaxGetResponse, FaxLineAddUserRequest, FaxLineAreaCodeGetCountryEnum, FaxLineAreaCodeGetProvinceEnum, FaxLineAreaCodeGetResponse, FaxLineAreaCodeGetStateEnum, FaxLineCreateRequest, FaxLineDeleteRequest, FaxLineListResponse, FaxLineRemoveUserRequest, FaxLineResponse, FaxLineResponseFaxLine, FaxListResponse, FaxResponse, FaxResponseTransmission, FaxSendRequest, FileResponse, FileResponseDataUri, HttpBasicAuth, HttpBearerAuth, Interceptor, ListInfoResponse, OAuth, OAuthTokenGenerateRequest, OAuthTokenRefreshRequest, OAuthTokenResponse, ObjectSerializer, ReportCreateRequest, ReportCreateResponse, ReportResponse, RequestDetailedFile, RequestFile, SignatureRequestBulkCreateEmbeddedWithTemplateRequest, SignatureRequestBulkSendWithTemplateRequest, SignatureRequestCreateEmbeddedRequest, SignatureRequestCreateEmbeddedWithTemplateRequest, SignatureRequestEditEmbeddedRequest, SignatureRequestEditEmbeddedWithTemplateRequest, SignatureRequestEditRequest, SignatureRequestEditWithTemplateRequest, SignatureRequestGetResponse, SignatureRequestListResponse, SignatureRequestRemindRequest, SignatureRequestResponse, SignatureRequestResponseAttachment, SignatureRequestResponseCustomFieldBase, SignatureRequestResponseCustomFieldCheckbox, SignatureRequestResponseCustomFieldText, SignatureRequestResponseCustomFieldTypeEnum, SignatureRequestResponseDataBase, SignatureRequestResponseDataTypeEnum, SignatureRequestResponseDataValueCheckbox, SignatureRequestResponseDataValueCheckboxMerge, SignatureRequestResponseDataValueDateSigned, SignatureRequestResponseDataValueDropdown, SignatureRequestResponseDataValueInitials, SignatureRequestResponseDataValueRadio, SignatureRequestResponseDataValueSignature, SignatureRequestResponseDataValueText, SignatureRequestResponseDataValueTextMerge, SignatureRequestResponseSignatures, SignatureRequestSendRequest, SignatureRequestSendWithTemplateRequest, SignatureRequestUpdateRequest, SubAttachment, SubBulkSignerList, SubBulkSignerListCustomField, SubCC, SubCustomField, SubEditorOptions, SubFieldOptions, SubFormFieldGroup, SubFormFieldRule, SubFormFieldRuleAction, SubFormFieldRuleTrigger, SubFormFieldsPerDocumentBase, SubFormFieldsPerDocumentCheckbox, SubFormFieldsPerDocumentCheckboxMerge, SubFormFieldsPerDocumentDateSigned, SubFormFieldsPerDocumentDropdown, SubFormFieldsPerDocumentFontEnum, SubFormFieldsPerDocumentHyperlink, SubFormFieldsPerDocumentInitials, SubFormFieldsPerDocumentRadio, SubFormFieldsPerDocumentSignature, SubFormFieldsPerDocumentText, SubFormFieldsPerDocumentTextMerge, SubFormFieldsPerDocumentTypeEnum, SubMergeField, SubOAuth, SubOptions, SubSignatureRequestGroupedSigners, SubSignatureRequestSigner, SubSignatureRequestTemplateSigner, SubSigningOptions, SubTeamResponse, SubTemplateRole, SubUnclaimedDraftSigner, SubUnclaimedDraftTemplateSigner, SubWhiteLabelingOptions, TeamAddMemberRequest, TeamCreateRequest, TeamGetInfoResponse, TeamGetResponse, TeamInfoResponse, TeamInviteResponse, TeamInvitesResponse, TeamMemberResponse, TeamMembersResponse, TeamParentResponse, TeamRemoveMemberRequest, TeamResponse, TeamSubTeamsResponse, TeamUpdateRequest, TemplateAddUserRequest, TemplateCreateEmbeddedDraftRequest, TemplateCreateEmbeddedDraftResponse, TemplateCreateEmbeddedDraftResponseTemplate, TemplateCreateRequest, TemplateCreateResponse, TemplateCreateResponseTemplate, TemplateGetResponse, TemplateListResponse, TemplateRemoveUserRequest, TemplateResponse, TemplateResponseAccount, TemplateResponseAccountQuota, TemplateResponseCCRole, TemplateResponseDocument, TemplateResponseDocumentCustomFieldBase, TemplateResponseDocumentCustomFieldCheckbox, TemplateResponseDocumentCustomFieldText, TemplateResponseDocumentFieldGroup, TemplateResponseDocumentFieldGroupRule, TemplateResponseDocumentFormFieldBase, TemplateResponseDocumentFormFieldCheckbox, TemplateResponseDocumentFormFieldDateSigned, TemplateResponseDocumentFormFieldDropdown, TemplateResponseDocumentFormFieldHyperlink, TemplateResponseDocumentFormFieldInitials, TemplateResponseDocumentFormFieldRadio, TemplateResponseDocumentFormFieldSignature, TemplateResponseDocumentFormFieldText, TemplateResponseDocumentStaticFieldBase, TemplateResponseDocumentStaticFieldCheckbox, TemplateResponseDocumentStaticFieldDateSigned, TemplateResponseDocumentStaticFieldDropdown, TemplateResponseDocumentStaticFieldHyperlink, TemplateResponseDocumentStaticFieldInitials, TemplateResponseDocumentStaticFieldRadio, TemplateResponseDocumentStaticFieldSignature, TemplateResponseDocumentStaticFieldText, TemplateResponseFieldAvgTextLength, TemplateResponseSignerRole, TemplateUpdateFilesRequest, TemplateUpdateFilesResponse, TemplateUpdateFilesResponseTemplate, UnclaimedDraftCreateEmbeddedRequest, UnclaimedDraftCreateEmbeddedWithTemplateRequest, UnclaimedDraftCreateRequest, UnclaimedDraftCreateResponse, UnclaimedDraftEditAndResendRequest, UnclaimedDraftResponse, VoidAuth, WarningResponse, };
diff --git a/sdks/node/types/model/subUpdateFormField.d.ts b/sdks/node/types/model/subUpdateFormField.d.ts
deleted file mode 100644
index 545043ecd..000000000
--- a/sdks/node/types/model/subUpdateFormField.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import { AttributeTypeMap } from "./";
-export declare class SubUpdateFormField {
- "apiId": string;
- "name"?: string;
- static discriminator: string | undefined;
- static attributeTypeMap: AttributeTypeMap;
- static getAttributeTypeMap(): AttributeTypeMap;
- static init(data: any): SubUpdateFormField;
-}
diff --git a/sdks/php/README.md b/sdks/php/README.md
index 3a709a912..b247c3b43 100644
--- a/sdks/php/README.md
+++ b/sdks/php/README.md
@@ -351,7 +351,6 @@ All URIs are relative to *https://api.hellosign.com/v3*
- [SubTemplateRole](docs/Model/SubTemplateRole.md)
- [SubUnclaimedDraftSigner](docs/Model/SubUnclaimedDraftSigner.md)
- [SubUnclaimedDraftTemplateSigner](docs/Model/SubUnclaimedDraftTemplateSigner.md)
-- [SubUpdateFormField](docs/Model/SubUpdateFormField.md)
- [SubWhiteLabelingOptions](docs/Model/SubWhiteLabelingOptions.md)
- [TeamAddMemberRequest](docs/Model/TeamAddMemberRequest.md)
- [TeamCreateRequest](docs/Model/TeamCreateRequest.md)
diff --git a/sdks/php/docs/Model/SubUpdateFormField.md b/sdks/php/docs/Model/SubUpdateFormField.md
deleted file mode 100644
index 1398a7960..000000000
--- a/sdks/php/docs/Model/SubUpdateFormField.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# # SubUpdateFormField
-
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-| `api_id`*_required_ | ```string``` | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | |
-| `name` | ```string``` | The new name of the field. If not passed the name will remain unchanged. | |
-
-[[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/SubUpdateFormField.php b/sdks/php/src/Model/SubUpdateFormField.php
deleted file mode 100644
index 9dcbeee00..000000000
--- a/sdks/php/src/Model/SubUpdateFormField.php
+++ /dev/null
@@ -1,450 +0,0 @@
-
- */
-class SubUpdateFormField implements ModelInterface, ArrayAccess, JsonSerializable
-{
- public const DISCRIMINATOR = null;
-
- /**
- * The original name of the model.
- *
- * @var string
- */
- protected static $openAPIModelName = 'SubUpdateFormField';
-
- /**
- * Array of property to type mappings. Used for (de)serialization
- *
- * @var string[]
- */
- protected static $openAPITypes = [
- 'api_id' => 'string',
- 'name' => 'string',
- ];
-
- /**
- * Array of property to format mappings. Used for (de)serialization
- *
- * @var string[]
- * @phpstan-var array
- * @psalm-var array
- */
- protected static $openAPIFormats = [
- 'api_id' => null,
- 'name' => null,
- ];
-
- /**
- * Array of nullable properties. Used for (de)serialization
- *
- * @var bool[]
- */
- protected static array $openAPINullables = [
- 'api_id' => false,
- 'name' => false,
- ];
-
- /**
- * If a nullable field gets set to null, insert it here
- *
- * @var bool[]
- */
- protected array $openAPINullablesSetToNull = [];
-
- /**
- * Array of property to type mappings. Used for (de)serialization
- *
- * @return array
- */
- public static function openAPITypes()
- {
- return self::$openAPITypes;
- }
-
- /**
- * Array of property to format mappings. Used for (de)serialization
- *
- * @return array
- */
- public static function openAPIFormats()
- {
- return self::$openAPIFormats;
- }
-
- /**
- * Array of nullable properties
- */
- protected static function openAPINullables(): array
- {
- return self::$openAPINullables;
- }
-
- /**
- * Array of nullable field names deliberately set to null
- *
- * @return bool[]
- */
- private function getOpenAPINullablesSetToNull(): array
- {
- return $this->openAPINullablesSetToNull;
- }
-
- /**
- * Setter - Array of nullable field names deliberately set to null
- *
- * @param bool[] $openAPINullablesSetToNull
- */
- private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void
- {
- $this->openAPINullablesSetToNull = $openAPINullablesSetToNull;
- }
-
- /**
- * Checks if a property is nullable
- */
- public static function isNullable(string $property): bool
- {
- return self::openAPINullables()[$property] ?? false;
- }
-
- /**
- * Checks if a nullable property is set to null.
- */
- public function isNullableSetToNull(string $property): bool
- {
- return in_array($property, $this->getOpenAPINullablesSetToNull(), true);
- }
-
- /**
- * Array of attributes where the key is the local name,
- * and the value is the original name
- *
- * @var string[]
- */
- protected static $attributeMap = [
- 'api_id' => 'api_id',
- 'name' => 'name',
- ];
-
- /**
- * Array of attributes to setter functions (for deserialization of responses)
- *
- * @var string[]
- */
- protected static $setters = [
- 'api_id' => 'setApiId',
- 'name' => 'setName',
- ];
-
- /**
- * Array of attributes to getter functions (for serialization of requests)
- *
- * @var string[]
- */
- protected static $getters = [
- 'api_id' => 'getApiId',
- 'name' => 'getName',
- ];
-
- /**
- * Array of attributes where the key is the local name,
- * and the value is the original name
- *
- * @return array
- */
- public static function attributeMap()
- {
- return self::$attributeMap;
- }
-
- /**
- * Array of attributes to setter functions (for deserialization of responses)
- *
- * @return array
- */
- public static function setters()
- {
- return self::$setters;
- }
-
- /**
- * Array of attributes to getter functions (for serialization of requests)
- *
- * @return array
- */
- public static function getters()
- {
- return self::$getters;
- }
-
- /**
- * The original name of the model.
- *
- * @return string
- */
- public function getModelName()
- {
- return self::$openAPIModelName;
- }
-
- /**
- * Associative array for storing property values
- *
- * @var mixed[]
- */
- protected $container = [];
-
- /**
- * Constructor
- *
- * @param mixed[]|null $data Associated array of property values
- * initializing the model
- */
- public function __construct(?array $data = null)
- {
- $this->setIfExists('api_id', $data ?? [], null);
- $this->setIfExists('name', $data ?? [], null);
- }
-
- /**
- * @deprecated use ::init()
- */
- public static function fromArray(array $data): SubUpdateFormField
- {
- return self::init($data);
- }
-
- /**
- * Attempt to instantiate and hydrate a new instance of this class
- */
- public static function init(array $data): SubUpdateFormField
- {
- /** @var SubUpdateFormField */
- return ObjectSerializer::deserialize(
- $data,
- SubUpdateFormField::class,
- );
- }
-
- /**
- * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName
- * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the
- * $this->openAPINullablesSetToNull array
- *
- * @param string|int|object|array|mixed $defaultValue
- */
- private function setIfExists(string $variableName, array $fields, $defaultValue): void
- {
- if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) {
- $this->openAPINullablesSetToNull[] = $variableName;
- }
-
- $this->container[$variableName] = $fields[$variableName] ?? $defaultValue;
- }
-
- /**
- * Show all the invalid properties with reasons.
- *
- * @return array invalid properties with reasons
- */
- public function listInvalidProperties()
- {
- $invalidProperties = [];
-
- if ($this->container['api_id'] === null) {
- $invalidProperties[] = "'api_id' can't be null";
- }
- return $invalidProperties;
- }
-
- /**
- * Validate all the properties in the model
- * return true if all passed
- *
- * @return bool True if all properties are valid
- */
- public function valid()
- {
- return count($this->listInvalidProperties()) === 0;
- }
-
- /**
- * Gets api_id
- *
- * @return string
- */
- public function getApiId()
- {
- return $this->container['api_id'];
- }
-
- /**
- * Sets api_id
- *
- * @param string $api_id The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
- *
- * @return self
- */
- public function setApiId(string $api_id)
- {
- if (is_null($api_id)) {
- throw new InvalidArgumentException('non-nullable api_id cannot be null');
- }
- $this->container['api_id'] = $api_id;
-
- return $this;
- }
-
- /**
- * Gets name
- *
- * @return string|null
- */
- public function getName()
- {
- return $this->container['name'];
- }
-
- /**
- * Sets name
- *
- * @param string|null $name The new name of the field. If not passed the name will remain unchanged.
- *
- * @return self
- */
- public function setName(?string $name)
- {
- if (is_null($name)) {
- throw new InvalidArgumentException('non-nullable name cannot be null');
- }
- $this->container['name'] = $name;
-
- return $this;
- }
-
- /**
- * Returns true if offset exists. False otherwise.
- *
- * @param int $offset Offset
- */
- #[ReturnTypeWillChange]
- public function offsetExists($offset): bool
- {
- return isset($this->container[$offset]);
- }
-
- /**
- * Gets offset.
- *
- * @param int $offset Offset
- *
- * @return mixed|null
- */
- #[ReturnTypeWillChange]
- public function offsetGet($offset)
- {
- return $this->container[$offset] ?? null;
- }
-
- /**
- * Sets value based on offset.
- *
- * @param int|null $offset Offset
- * @param mixed $value Value to be set
- */
- #[ReturnTypeWillChange]
- public function offsetSet($offset, $value): void
- {
- if (is_null($offset)) {
- $this->container[] = $value;
- } else {
- $this->container[$offset] = $value;
- }
- }
-
- /**
- * Unsets offset.
- *
- * @param int $offset Offset
- */
- #[ReturnTypeWillChange]
- public function offsetUnset($offset): void
- {
- unset($this->container[$offset]);
- }
-
- /**
- * Serializes the object to a value that can be serialized natively by json_encode().
- * @see https://www.php.net/manual/en/jsonserializable.jsonserialize.php
- *
- * @return mixed returns data which can be serialized by json_encode(), which is a value
- * of any type other than a resource
- */
- #[ReturnTypeWillChange]
- public function jsonSerialize()
- {
- return ObjectSerializer::sanitizeForSerialization($this);
- }
-
- /**
- * Gets the string presentation of the object
- *
- * @return string
- */
- public function __toString()
- {
- return json_encode(
- ObjectSerializer::sanitizeForSerialization($this),
- JSON_UNESCAPED_SLASHES
- );
- }
-
- /**
- * Gets a header-safe presentation of the object
- *
- * @return string
- */
- public function toHeaderValue()
- {
- return json_encode(ObjectSerializer::sanitizeForSerialization($this));
- }
-}
diff --git a/sdks/python/README.md b/sdks/python/README.md
index 40055084a..870a2a1a6 100644
--- a/sdks/python/README.md
+++ b/sdks/python/README.md
@@ -307,7 +307,6 @@ Class | Method | HTTP request | Description
- [SubTemplateRole](docs/SubTemplateRole.md)
- [SubUnclaimedDraftSigner](docs/SubUnclaimedDraftSigner.md)
- [SubUnclaimedDraftTemplateSigner](docs/SubUnclaimedDraftTemplateSigner.md)
- - [SubUpdateFormField](docs/SubUpdateFormField.md)
- [SubWhiteLabelingOptions](docs/SubWhiteLabelingOptions.md)
- [TeamAddMemberRequest](docs/TeamAddMemberRequest.md)
- [TeamCreateRequest](docs/TeamCreateRequest.md)
diff --git a/sdks/python/docs/SubUpdateFormField.md b/sdks/python/docs/SubUpdateFormField.md
deleted file mode 100644
index f227abfda..000000000
--- a/sdks/python/docs/SubUpdateFormField.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# SubUpdateFormField
-
-
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-| `api_id`*_required_ | ```str``` | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | |
-| `name` | ```str``` | The new name of the field. If not passed the name will remain unchanged. | |
-
-[[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/__init__.py b/sdks/python/dropbox_sign/__init__.py
index 8d35721ba..785146d22 100644
--- a/sdks/python/dropbox_sign/__init__.py
+++ b/sdks/python/dropbox_sign/__init__.py
@@ -276,7 +276,6 @@
from dropbox_sign.models.sub_unclaimed_draft_template_signer import (
SubUnclaimedDraftTemplateSigner,
)
-from dropbox_sign.models.sub_update_form_field import SubUpdateFormField
from dropbox_sign.models.sub_white_labeling_options import SubWhiteLabelingOptions
from dropbox_sign.models.team_add_member_request import TeamAddMemberRequest
from dropbox_sign.models.team_create_request import TeamCreateRequest
diff --git a/sdks/python/dropbox_sign/models/__init__.py b/sdks/python/dropbox_sign/models/__init__.py
index 58571d591..bb54e9011 100644
--- a/sdks/python/dropbox_sign/models/__init__.py
+++ b/sdks/python/dropbox_sign/models/__init__.py
@@ -259,7 +259,6 @@
from dropbox_sign.models.sub_unclaimed_draft_template_signer import (
SubUnclaimedDraftTemplateSigner,
)
-from dropbox_sign.models.sub_update_form_field import SubUpdateFormField
from dropbox_sign.models.sub_white_labeling_options import SubWhiteLabelingOptions
from dropbox_sign.models.team_add_member_request import TeamAddMemberRequest
from dropbox_sign.models.team_create_request import TeamCreateRequest
diff --git a/sdks/python/dropbox_sign/models/sub_update_form_field.py b/sdks/python/dropbox_sign/models/sub_update_form_field.py
deleted file mode 100644
index e06e3ef06..000000000
--- a/sdks/python/dropbox_sign/models/sub_update_form_field.py
+++ /dev/null
@@ -1,128 +0,0 @@
-# coding: utf-8
-
-"""
-Dropbox Sign API
-
-Dropbox Sign v3 API
-
-The version of the OpenAPI document: 3.0.0
-Contact: apisupport@hellosign.com
-Generated by OpenAPI Generator (https://openapi-generator.tech)
-
-Do not edit the class manually.
-""" # noqa: E501
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-from typing import Tuple, Union
-import io
-from pydantic import StrictBool
-
-
-class SubUpdateFormField(BaseModel):
- """
- SubUpdateFormField
- """ # noqa: E501
-
- api_id: StrictStr = Field(
- description="The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found"
- )
- name: Optional[StrictStr] = Field(
- default=None,
- description="The new name of the field. If not passed the name will remain unchanged.",
- )
- __properties: ClassVar[List[str]] = ["api_id", "name"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- arbitrary_types_allowed=True,
- )
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- def to_json_form_params(
- self, excluded_fields: Set[str] = None
- ) -> List[Tuple[str, str]]:
- data: List[Tuple[str, str]] = []
-
- for key, value in self.to_dict(excluded_fields).items():
- if isinstance(value, (int, str, bool)):
- data.append((key, value))
- else:
- data.append((key, json.dumps(value, ensure_ascii=False)))
-
- return data
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of SubUpdateFormField from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self, excluded_fields: Set[str] = None) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SubUpdateFormField from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate(
- {"api_id": obj.get("api_id"), "name": obj.get("name")}
- )
- return _obj
-
- @classmethod
- def init(cls, data: Any) -> Self:
- """
- Attempt to instantiate and hydrate a new instance of this class
- """
- if isinstance(data, str):
- data = json.loads(data)
-
- return cls.from_dict(data)
-
- @classmethod
- def openapi_types(cls) -> Dict[str, str]:
- return {
- "api_id": "(str,)",
- "name": "(str,)",
- }
-
- @classmethod
- def openapi_type_is_array(cls, property_name: str) -> bool:
- return property_name in []
diff --git a/sdks/ruby/README.md b/sdks/ruby/README.md
index 4c46f0bd0..c7b4bbae2 100644
--- a/sdks/ruby/README.md
+++ b/sdks/ruby/README.md
@@ -311,7 +311,6 @@ All URIs are relative to *https://api.hellosign.com/v3*
- [Dropbox::Sign::SubTemplateRole](docs/SubTemplateRole.md)
- [Dropbox::Sign::SubUnclaimedDraftSigner](docs/SubUnclaimedDraftSigner.md)
- [Dropbox::Sign::SubUnclaimedDraftTemplateSigner](docs/SubUnclaimedDraftTemplateSigner.md)
- - [Dropbox::Sign::SubUpdateFormField](docs/SubUpdateFormField.md)
- [Dropbox::Sign::SubWhiteLabelingOptions](docs/SubWhiteLabelingOptions.md)
- [Dropbox::Sign::TeamAddMemberRequest](docs/TeamAddMemberRequest.md)
- [Dropbox::Sign::TeamCreateRequest](docs/TeamCreateRequest.md)
diff --git a/sdks/ruby/docs/SubUpdateFormField.md b/sdks/ruby/docs/SubUpdateFormField.md
deleted file mode 100644
index f65ea0c51..000000000
--- a/sdks/ruby/docs/SubUpdateFormField.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Dropbox::Sign::SubUpdateFormField
-
-
-
-## Properties
-
-| Name | Type | Description | Notes |
-| ---- | ---- | ----------- | ----- |
-| `api_id`*_required_ | ```String``` | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | |
-| `name` | ```String``` | The new name of the field. If not passed the name will remain unchanged. | |
-
diff --git a/sdks/ruby/lib/dropbox-sign.rb b/sdks/ruby/lib/dropbox-sign.rb
index fb45147a0..e85d1d545 100644
--- a/sdks/ruby/lib/dropbox-sign.rb
+++ b/sdks/ruby/lib/dropbox-sign.rb
@@ -123,7 +123,6 @@
require 'dropbox-sign/models/sub_template_role'
require 'dropbox-sign/models/sub_unclaimed_draft_signer'
require 'dropbox-sign/models/sub_unclaimed_draft_template_signer'
-require 'dropbox-sign/models/sub_update_form_field'
require 'dropbox-sign/models/sub_white_labeling_options'
require 'dropbox-sign/models/team_add_member_request'
require 'dropbox-sign/models/team_create_request'
diff --git a/sdks/ruby/lib/dropbox-sign/models/sub_update_form_field.rb b/sdks/ruby/lib/dropbox-sign/models/sub_update_form_field.rb
deleted file mode 100644
index 0e9d10732..000000000
--- a/sdks/ruby/lib/dropbox-sign/models/sub_update_form_field.rb
+++ /dev/null
@@ -1,278 +0,0 @@
-=begin
-#Dropbox Sign API
-
-#Dropbox Sign v3 API
-
-The version of the OpenAPI document: 3.0.0
-Contact: apisupport@hellosign.com
-Generated by: https://openapi-generator.tech
-Generator version: 7.12.0
-
-=end
-
-require 'date'
-require 'time'
-
-module Dropbox
-end
-
-module Dropbox::Sign
- class SubUpdateFormField
- # The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found
- # @return [String]
- attr_accessor :api_id
-
- # The new name of the field. If not passed the name will remain unchanged.
- # @return [String]
- attr_accessor :name
-
- # Attribute mapping from ruby-style variable name to JSON key.
- def self.attribute_map
- {
- :'api_id' => :'api_id',
- :'name' => :'name'
- }
- end
-
- # Returns attribute mapping this model knows about
- def self.acceptable_attribute_map
- attribute_map
- end
-
- # Returns all the JSON keys this model knows about
- def self.acceptable_attributes
- acceptable_attribute_map.values
- end
-
- # Attribute type mapping.
- def self.openapi_types
- {
- :'api_id' => :'String',
- :'name' => :'String'
- }
- end
-
- # List of attributes with nullable: true
- def self.openapi_nullable
- Set.new([
- ])
- end
-
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
- # Returns list of attributes with nullable: true of this model + parent
- def self.merged_nullable
- self.openapi_nullable
- end
-
- # Attempt to instantiate and hydrate a new instance of this class
- # @param [Object] data Data to be converted
- # @return [SubUpdateFormField]
- def self.init(data)
- ApiClient.default.convert_to_type(
- data,
- "SubUpdateFormField"
- ) || SubUpdateFormField.new
- end
-
- # Initializes the object
- # @param [Hash] attributes Model attributes in the form of hash
- def initialize(attributes = {})
- if (!attributes.is_a?(Hash))
- fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::SubUpdateFormField` initialize method"
- end
-
- # check to see if the attribute exists and convert string to symbol for hash key
- acceptable_attribute_map = self.class.acceptable_attribute_map
- attributes = attributes.each_with_object({}) { |(k, v), h|
- if (!self.class.merged_attributes.key?(k.to_sym))
- fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::SubUpdateFormField`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
- end
- h[k.to_sym] = v
- }
-
- if attributes.key?(:'api_id')
- self.api_id = attributes[:'api_id']
- end
-
- if attributes.key?(:'name')
- self.name = attributes[:'name']
- end
- end
-
- # Show invalid properties with the reasons. Usually used together with valid?
- # @return Array for valid properties with the reasons
- def list_invalid_properties
- invalid_properties = Array.new
- if @api_id.nil?
- invalid_properties.push('invalid value for "api_id", api_id cannot be nil.')
- end
-
- invalid_properties
- end
-
- # Check to see if the all the properties in the model are valid
- # @return true if the model is valid
- def valid?
- return false if @api_id.nil?
- true
- end
-
- # Custom attribute writer method with validation
- # @param [Object] api_id Value to be assigned
- def api_id=(api_id)
- if api_id.nil?
- fail ArgumentError, 'api_id cannot be nil'
- end
-
- @api_id = api_id
- end
-
- # Checks equality by comparing each attribute.
- # @param [Object] Object to be compared
- def ==(o)
- return true if self.equal?(o)
- self.class == o.class &&
- api_id == o.api_id &&
- name == o.name
- end
-
- # @see the `==` method
- # @param [Object] Object to be compared
- def eql?(o)
- self == o
- end
-
- # Calculates hash code according to all attributes.
- # @return [Integer] Hash code
- def hash
- [api_id, name].hash
- end
-
- # Builds the object from hash
- # @param [Hash] attributes Model attributes in the form of hash
- # @return [Object] Returns the model itself
- def self.build_from_hash(attributes)
- new.build_from_hash(attributes)
- end
-
- # Builds the object from hash
- # @param [Hash] attributes Model attributes in the form of hash
- # @return [Object] Returns the model itself
- def build_from_hash(attributes)
- return nil unless attributes.is_a?(Hash)
- attribute_map = self.class.merged_attributes
-
- self.class.merged_types.each_pair do |key, type|
- if type =~ /\AArray<(.*)>/i
- # check to ensure the input is an array given that the attribute
- # is documented as an array but the input is not
- if attributes[attribute_map[key]].is_a?(Array)
- self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
- end
- elsif !attributes[attribute_map[key]].nil?
- self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
- end
- end
-
- self
- end
-
- # Deserializes the data based on type
- # @param string type Data type
- # @param string value Value to be deserialized
- # @return [Object] Deserialized data
- def _deserialize(type, value)
- case type.to_sym
- when :Time
- Time.parse(value)
- when :Date
- Date.parse(value)
- when :String
- value.to_s
- when :Integer
- value.to_i
- when :Float
- value.to_f
- when :Boolean
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
- true
- else
- false
- end
- when :Object
- # generic object (usually a Hash), return directly
- value
- when /\AArray<(?.+)>\z/
- inner_type = Regexp.last_match[:inner_type]
- value.map { |v| _deserialize(inner_type, v) }
- when /\AHash<(?.+?), (?.+)>\z/
- k_type = Regexp.last_match[:k_type]
- v_type = Regexp.last_match[:v_type]
- {}.tap do |hash|
- value.each do |k, v|
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
- end
- end
- else # model
- klass = Dropbox::Sign.const_get(type)
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
- end
- end
-
- # Returns the string representation of the object
- # @return [String] String presentation of the object
- def to_s
- to_hash.to_s
- end
-
- # to_body is an alias to to_hash (backward compatibility)
- # @return [Hash] Returns the object in the form of hash
- def to_body
- to_hash
- end
-
- # Returns the object in the form of hash
- # @return [Hash] Returns the object in the form of hash
- def to_hash(include_nil = true)
- hash = {}
- self.class.merged_attributes.each_pair do |attr, param|
- value = self.send(attr)
- if value.nil?
- next unless include_nil
- is_nullable = self.class.merged_nullable.include?(attr)
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
- end
-
- hash[param] = _to_hash(value, include_nil)
- end
- hash
- end
-
- # Outputs non-array value in the form of hash
- # For object, use to_hash. Otherwise, just return the value
- # @param [Object] value Any valid value
- # @return [Hash] Returns the value in the form of hash
- def _to_hash(value, include_nil = true)
- if value.is_a?(Array)
- value.compact.map { |v| _to_hash(v, include_nil) }
- elsif value.is_a?(Hash)
- {}.tap do |hash|
- value.each { |k, v| hash[k] = _to_hash(v, include_nil) }
- end
- elsif value.respond_to? :to_hash
- value.to_hash(include_nil)
- else
- value
- end
- end
- end
-end