diff --git a/openapi-raw.yaml b/openapi-raw.yaml index b493b4b23..4ad38accb 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -11062,6 +11062,10 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string + is_signed: + description: '_t__SignatureRequestResponseDataValue::IS_SIGNED' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11090,6 +11094,10 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string + is_signed: + description: '_t__SignatureRequestResponseDataValue::IS_SIGNED' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 2b22c38d0..a5a1a0198 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -11678,6 +11678,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11706,6 +11710,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: diff --git a/openapi.yaml b/openapi.yaml index 01b6a27be..6862170aa 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11648,6 +11648,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11676,6 +11680,10 @@ components: value: description: 'The value of the form field.' type: string + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean + nullable: true type: object SignatureRequestResponseDataValueText: allOf: diff --git a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index fcd9ab1f8..74ef6e094 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional] **Name** | **string** | The name of the form field. | [optional] **Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] +**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | This field contains the boolean true if the field is signed. | [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/docs/SignatureRequestResponseDataValueSignature.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md index 2ee12dce2..8e921bf9b 100644 --- a/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional] **Name** | **string** | The name of the form field. | [optional] **Required** | **bool** | A boolean value denoting if this field is required. | [optional] -**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] +**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | This field contains the boolean true if the field is signed. | [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/SignatureRequestResponseDataValueInitials.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs index 28c5973db..023ee3d63 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueInitials() { } /// /// An input field for initials (default to "initials"). /// The value of the form field.. + /// This field contains the boolean true if the field is signed.. /// The unique ID for this field.. /// The ID of the signature to which this response is linked.. /// The name of the form field.. /// A boolean value denoting if this field is required.. - public SignatureRequestResponseDataValueInitials(string type = @"initials", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueInitials(string type = @"initials", string value = default(string), bool? isSigned = default(bool?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueInitials() { } // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; + this.IsSigned = isSigned; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the boolean true if the field is signed. + /// + /// This field contains the boolean true if the field is signed. + [DataMember(Name = "is_signed", EmitDefaultValue = true)] + public bool? IsSigned { get; set; } + /// /// Returns the string presentation of the object /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + if (this.IsSigned != null) + { + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); + } return hashCode; } } @@ -208,6 +227,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "is_signed", + Property = "IsSigned", + Type = "bool?", + Value = IsSigned, + }); return types; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index c5c2d5392..efe2bb26c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueSignature() { } /// /// A signature input field (default to "signature"). /// The value of the form field.. + /// This field contains the boolean true if the field is signed.. /// The unique ID for this field.. /// The ID of the signature to which this response is linked.. /// The name of the form field.. /// A boolean value denoting if this field is required.. - public SignatureRequestResponseDataValueSignature(string type = @"signature", string value = default(string), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) + public SignatureRequestResponseDataValueSignature(string type = @"signature", string value = default(string), bool? isSigned = default(bool?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueSignature() { } // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; + this.IsSigned = isSigned; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the boolean true if the field is signed. + /// + /// This field contains the boolean true if the field is signed. + [DataMember(Name = "is_signed", EmitDefaultValue = true)] + public bool? IsSigned { get; set; } + /// /// Returns the string presentation of the object /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -164,6 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + if (this.IsSigned != null) + { + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); + } return hashCode; } } @@ -208,6 +227,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "is_signed", + Property = "IsSigned", + Type = "bool?", + Value = IsSigned, + }); return types; } diff --git a/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md b/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md index 7f82d742c..760618b49 100644 --- a/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | An input field for initials | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md b/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md index 910932c19..8cea5ac2e 100644 --- a/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | A signature input field | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index 976036e02..28262ccf4 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -27,7 +27,8 @@ /** SignatureRequestResponseDataValueInitials */ @JsonPropertyOrder({ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -47,6 +48,9 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueInitials() {} /** @@ -110,6 +114,28 @@ public void setValue(String value) { this.value = value; } + public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * + * @return isSigned + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsSigned() { + return isSigned; + } + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + /** Return true if this SignatureRequestResponseDataValueInitials object is equal to o. */ @Override public boolean equals(Object o) { @@ -123,12 +149,13 @@ public boolean equals(Object o) { (SignatureRequestResponseDataValueInitials) o; return Objects.equals(this.type, signatureRequestResponseDataValueInitials.type) && Objects.equals(this.value, signatureRequestResponseDataValueInitials.value) + && Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -138,6 +165,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -183,6 +211,26 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) + || isSigned.getClass().equals(Integer.class) + || isSigned.getClass().equals(String.class) + || isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for (int i = 0; i < getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } else { + map.put( + "is_signed", + JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index 8fc3e438d..657bc4864 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -27,7 +27,8 @@ /** SignatureRequestResponseDataValueSignature */ @JsonPropertyOrder({ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -47,6 +48,9 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueSignature() {} /** @@ -111,6 +115,28 @@ public void setValue(String value) { this.value = value; } + public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * + * @return isSigned + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsSigned() { + return isSigned; + } + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + /** Return true if this SignatureRequestResponseDataValueSignature object is equal to o. */ @Override public boolean equals(Object o) { @@ -124,12 +150,14 @@ public boolean equals(Object o) { (SignatureRequestResponseDataValueSignature) o; return Objects.equals(this.type, signatureRequestResponseDataValueSignature.type) && Objects.equals(this.value, signatureRequestResponseDataValueSignature.value) + && Objects.equals( + this.isSigned, signatureRequestResponseDataValueSignature.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -139,6 +167,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -184,6 +213,26 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) + || isSigned.getClass().equals(Integer.class) + || isSigned.getClass().equals(String.class) + || isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for (int i = 0; i < getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } else { + map.put( + "is_signed", + JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md b/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md index 7f82d742c..760618b49 100644 --- a/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | An input field for initials | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md b/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md index 910932c19..8cea5ac2e 100644 --- a/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md @@ -10,6 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | A signature input field | | | `value` | ```String``` | The value of the form field. | | +| `isSigned` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java index cab08d907..3724d3e55 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java @@ -38,7 +38,8 @@ */ @JsonPropertyOrder({ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( @@ -54,6 +55,9 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueInitials() { } @@ -122,6 +126,31 @@ public void setValue(String value) { } + public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * @return isSigned + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsSigned() { + return isSigned; + } + + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + + /** * Return true if this SignatureRequestResponseDataValueInitials object is equal to o. */ @@ -136,12 +165,13 @@ public boolean equals(Object o) { SignatureRequestResponseDataValueInitials signatureRequestResponseDataValueInitials = (SignatureRequestResponseDataValueInitials) o; return Objects.equals(this.type, signatureRequestResponseDataValueInitials.type) && Objects.equals(this.value, signatureRequestResponseDataValueInitials.value) && + Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -151,6 +181,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -198,6 +229,25 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) || + isSigned.getClass().equals(Integer.class) || + isSigned.getClass().equals(String.class) || + isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for(int i = 0; i< getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } + else { + map.put("is_signed", JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java index 79eb3b4a9..1a789fb30 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java @@ -38,7 +38,8 @@ */ @JsonPropertyOrder({ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE, - SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( @@ -54,6 +55,9 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest public static final String JSON_PROPERTY_VALUE = "value"; private String value; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; + public SignatureRequestResponseDataValueSignature() { } @@ -122,6 +126,31 @@ public void setValue(String value) { } + public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + this.isSigned = isSigned; + return this; + } + + /** + * This field contains the boolean true if the field is signed. + * @return isSigned + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getIsSigned() { + return isSigned; + } + + + @JsonProperty(JSON_PROPERTY_IS_SIGNED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; + } + + /** * Return true if this SignatureRequestResponseDataValueSignature object is equal to o. */ @@ -136,12 +165,13 @@ public boolean equals(Object o) { SignatureRequestResponseDataValueSignature signatureRequestResponseDataValueSignature = (SignatureRequestResponseDataValueSignature) o; return Objects.equals(this.type, signatureRequestResponseDataValueSignature.type) && Objects.equals(this.value, signatureRequestResponseDataValueSignature.value) && + Objects.equals(this.isSigned, signatureRequestResponseDataValueSignature.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -151,6 +181,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -198,6 +229,25 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { + fileTypeFound = true; + } + + if (isSigned.getClass().equals(java.io.File.class) || + isSigned.getClass().equals(Integer.class) || + isSigned.getClass().equals(String.class) || + isSigned.getClass().isEnum()) { + map.put("is_signed", isSigned); + } else if (isListOfFile(isSigned)) { + for(int i = 0; i< getListSize(isSigned); i++) { + map.put("is_signed[" + i + "]", getFromList(isSigned, i)); + } + } + else { + map.put("is_signed", JSON.getDefault().getMapper().writeValueAsString(isSigned)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index cf17c8610..c613b476a 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -19743,6 +19743,11 @@ SignatureRequestResponseDataValueInitials.attributeTypeMap = [ name: "value", baseName: "value", type: "string" + }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean" } ]; @@ -19805,6 +19810,11 @@ SignatureRequestResponseDataValueSignature.attributeTypeMap = [ name: "value", baseName: "value", type: "string" + }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean" } ]; diff --git a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md index 7e294a6a0..2a80d7347 100644 --- a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md +++ b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | An input field for initials | [default to 'initials'] | | `value` | ```string``` | The value of the form field. | | +| `isSigned` | ```boolean``` | This field contains the boolean true if the field is signed. | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md b/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md index eac84c81e..1b76c43b5 100644 --- a/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md +++ b/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | A signature input field | [default to 'signature'] | | `value` | ```string``` | The value of the form field. | | +| `isSigned` | ```boolean``` | This field contains the boolean true if the field is signed. | | [[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/signatureRequestResponseDataValueInitials.ts b/sdks/node/model/signatureRequestResponseDataValueInitials.ts index 59e854f77..9d3975eb1 100644 --- a/sdks/node/model/signatureRequestResponseDataValueInitials.ts +++ b/sdks/node/model/signatureRequestResponseDataValueInitials.ts @@ -34,6 +34,10 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR * The value of the form field. */ "value"?: string; + /** + * This field contains the boolean true if the field is signed. + */ + "isSigned"?: boolean | null; static discriminator: string | undefined = undefined; @@ -48,6 +52,11 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR baseName: "value", type: "string", }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/model/signatureRequestResponseDataValueSignature.ts b/sdks/node/model/signatureRequestResponseDataValueSignature.ts index 99da64fac..dae941876 100644 --- a/sdks/node/model/signatureRequestResponseDataValueSignature.ts +++ b/sdks/node/model/signatureRequestResponseDataValueSignature.ts @@ -34,6 +34,10 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest * The value of the form field. */ "value"?: string; + /** + * This field contains the boolean true if the field is signed. + */ + "isSigned"?: boolean | null; static discriminator: string | undefined = undefined; @@ -48,6 +52,11 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest baseName: "value", type: "string", }, + { + name: "isSigned", + baseName: "is_signed", + type: "boolean", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts index f6939bafb..060954deb 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts @@ -3,6 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueInitials extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; + "isSigned"?: boolean | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts index 8017a799b..281a6943f 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts @@ -3,6 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueSignature extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; + "isSigned"?: boolean | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md b/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md index 7e294a6a0..f4bf660f6 100644 --- a/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md +++ b/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | An input field for initials | [default to 'initials'] | | `value` | ```string``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md b/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md index eac84c81e..877febbcd 100644 --- a/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md +++ b/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | A signature input field | [default to 'signature'] | | `value` | ```string``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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/SignatureRequestResponseDataValueInitials.php b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php index 30ab1f375..25ed14574 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php @@ -57,6 +57,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPITypes = [ 'type' => 'string', 'value' => 'string', + 'is_signed' => 'bool', ]; /** @@ -69,6 +70,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPIFormats = [ 'type' => null, 'value' => null, + 'is_signed' => null, ]; /** @@ -79,6 +81,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static array $openAPINullables = [ 'type' => false, 'value' => false, + 'is_signed' => true, ]; /** @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', + 'is_signed' => 'is_signed', ]; /** @@ -171,6 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', + 'is_signed' => 'setIsSigned', ]; /** @@ -181,6 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', + 'is_signed' => 'getIsSigned', ]; /** @@ -236,6 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'initials'); $this->setIfExists('value', $data ?? [], null); + $this->setIfExists('is_signed', $data ?? [], null); } /** @@ -349,6 +356,40 @@ public function setValue(?string $value) return $this; } + /** + * Gets is_signed + * + * @return bool|null + */ + public function getIsSigned() + { + return $this->container['is_signed']; + } + + /** + * Sets is_signed + * + * @param bool|null $is_signed this field contains the boolean true if the field is signed + * + * @return self + */ + public function setIsSigned(?bool $is_signed) + { + if (is_null($is_signed)) { + array_push($this->openAPINullablesSetToNull, 'is_signed'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_signed', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_signed'] = $is_signed; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php index 458a052a7..b72a8c1fc 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php @@ -57,6 +57,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPITypes = [ 'type' => 'string', 'value' => 'string', + 'is_signed' => 'bool', ]; /** @@ -69,6 +70,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPIFormats = [ 'type' => null, 'value' => null, + 'is_signed' => null, ]; /** @@ -79,6 +81,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static array $openAPINullables = [ 'type' => false, 'value' => false, + 'is_signed' => true, ]; /** @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', + 'is_signed' => 'is_signed', ]; /** @@ -171,6 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', + 'is_signed' => 'setIsSigned', ]; /** @@ -181,6 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', + 'is_signed' => 'getIsSigned', ]; /** @@ -236,6 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'signature'); $this->setIfExists('value', $data ?? [], null); + $this->setIfExists('is_signed', $data ?? [], null); } /** @@ -349,6 +356,40 @@ public function setValue(?string $value) return $this; } + /** + * Gets is_signed + * + * @return bool|null + */ + public function getIsSigned() + { + return $this->container['is_signed']; + } + + /** + * Sets is_signed + * + * @param bool|null $is_signed this field contains the boolean true if the field is signed + * + * @return self + */ + public function setIsSigned(?bool $is_signed) + { + if (is_null($is_signed)) { + array_push($this->openAPINullablesSetToNull, 'is_signed'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('is_signed', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['is_signed'] = $is_signed; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/sdks/python/docs/SignatureRequestResponseDataValueInitials.md b/sdks/python/docs/SignatureRequestResponseDataValueInitials.md index 33a601325..425498be7 100644 --- a/sdks/python/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/python/docs/SignatureRequestResponseDataValueInitials.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```str``` | An input field for initials | [default to 'initials'] | | `value` | ```str``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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/docs/SignatureRequestResponseDataValueSignature.md b/sdks/python/docs/SignatureRequestResponseDataValueSignature.md index cd1512857..a50bcc538 100644 --- a/sdks/python/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/python/docs/SignatureRequestResponseDataValueSignature.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```str``` | A signature input field | [default to 'signature'] | | `value` | ```str``` | The value of the form field. | | +| `is_signed` | ```bool``` | This field contains the boolean true if the field is signed. | | [[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/signature_request_response_data_value_initials.py b/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py index db4e0281f..f5a493c75 100644 --- a/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py +++ b/sdks/python/dropbox_sign/models/signature_request_response_data_value_initials.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from dropbox_sign.models.signature_request_response_data_base import ( SignatureRequestResponseDataBase, @@ -41,6 +41,10 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase value: Optional[StrictStr] = Field( default=None, description="The value of the form field." ) + is_signed: Optional[StrictBool] = Field( + default=None, + description="This field contains the boolean true if the field is signed.", + ) __properties: ClassVar[List[str]] = [ "api_id", "signature_id", @@ -48,6 +52,7 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase "required", "type", "value", + "is_signed", ] model_config = ConfigDict( @@ -119,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "required": obj.get("required"), "type": obj.get("type") if obj.get("type") is not None else "initials", "value": obj.get("value"), + "is_signed": obj.get("is_signed"), } ) return _obj @@ -138,6 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", + "is_signed": "(bool,)", "api_id": "(str,)", "signature_id": "(str,)", "name": "(str,)", diff --git a/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py b/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py index 795ab9b3f..86461b32a 100644 --- a/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py +++ b/sdks/python/dropbox_sign/models/signature_request_response_data_value_signature.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import ConfigDict, Field, StrictStr +from pydantic import ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from dropbox_sign.models.signature_request_response_data_base import ( SignatureRequestResponseDataBase, @@ -41,6 +41,10 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas value: Optional[StrictStr] = Field( default=None, description="The value of the form field." ) + is_signed: Optional[StrictBool] = Field( + default=None, + description="This field contains the boolean true if the field is signed.", + ) __properties: ClassVar[List[str]] = [ "api_id", "signature_id", @@ -48,6 +52,7 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas "required", "type", "value", + "is_signed", ] model_config = ConfigDict( @@ -119,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "required": obj.get("required"), "type": obj.get("type") if obj.get("type") is not None else "signature", "value": obj.get("value"), + "is_signed": obj.get("is_signed"), } ) return _obj @@ -138,6 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", + "is_signed": "(bool,)", "api_id": "(str,)", "signature_id": "(str,)", "name": "(str,)", diff --git a/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md b/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md index b941e57e0..348042eed 100644 --- a/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md @@ -8,4 +8,5 @@ | ---- | ---- | ----------- | ----- | | `type` | ```String``` | An input field for initials | [default to 'initials'] | | `value` | ```String``` | The value of the form field. | | +| `is_signed` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md b/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md index 83e106c4a..78eb1d732 100644 --- a/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md @@ -8,4 +8,5 @@ | ---- | ---- | ----------- | ----- | | `type` | ```String``` | A signature input field | [default to 'signature'] | | `value` | ```String``` | The value of the form field. | | +| `is_signed` | ```Boolean``` | This field contains the boolean true if the field is signed. | | diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb index 01932416c..e5c4df0d4 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb @@ -26,11 +26,16 @@ class SignatureRequestResponseDataValueInitials < SignatureRequestResponseDataBa # @return [String] attr_accessor :value + # This field contains the boolean true if the field is signed. + # @return [Boolean, nil] + attr_accessor :is_signed + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'value' => :'value' + :'value' => :'value', + :'is_signed' => :'is_signed' } end @@ -43,13 +48,15 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'value' => :'String' + :'value' => :'String', + :'is_signed' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_signed' ]) end @@ -105,6 +112,10 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] end + + if attributes.key?(:'is_signed') + self.is_signed = attributes[:'is_signed'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,7 +137,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - value == o.value && super(o) + value == o.value && + is_signed == o.is_signed && super(o) end # @see the `==` method @@ -138,7 +150,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value].hash + [type, value, is_signed].hash end # Builds the object from hash diff --git a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb index 253aa8549..ecbc9b588 100644 --- a/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +++ b/sdks/ruby/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb @@ -26,11 +26,16 @@ class SignatureRequestResponseDataValueSignature < SignatureRequestResponseDataB # @return [String] attr_accessor :value + # This field contains the boolean true if the field is signed. + # @return [Boolean, nil] + attr_accessor :is_signed + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'value' => :'value' + :'value' => :'value', + :'is_signed' => :'is_signed' } end @@ -43,13 +48,15 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'value' => :'String' + :'value' => :'String', + :'is_signed' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'is_signed' ]) end @@ -105,6 +112,10 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] end + + if attributes.key?(:'is_signed') + self.is_signed = attributes[:'is_signed'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,7 +137,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - value == o.value && super(o) + value == o.value && + is_signed == o.is_signed && super(o) end # @see the `==` method @@ -138,7 +150,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value].hash + [type, value, is_signed].hash end # Builds the object from hash diff --git a/test_fixtures/SignatureRequestGetResponse.json b/test_fixtures/SignatureRequestGetResponse.json index c545f87b5..f0fda3c1c 100644 --- a/test_fixtures/SignatureRequestGetResponse.json +++ b/test_fixtures/SignatureRequestGetResponse.json @@ -99,6 +99,7 @@ "required": true, "api_id": "initial__1", "value": "YM", + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" }, { @@ -115,6 +116,7 @@ "required": true, "api_id": "signature__1", "value": "John Doe", + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" } ], diff --git a/translations/en.yaml b/translations/en.yaml index 6397d4aa8..553da26d9 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1433,6 +1433,7 @@ "SignatureRequestResponseDataValue::TEXTMERGE_TYPE": A text field that has default text set by the api "SignatureRequestResponseDataValue::CHECKBOXMERGE_TYPE": A checkbox field that has default value set by the api "SignatureRequestResponseDataValue::VALUE": The value of the form field. +"SignatureRequestResponseDataValue::IS_SIGNED": This field contains the boolean true if the field is signed. "SignatureRequestResponseSignatures::DESCRIPTION": An array of signature objects, 1 for each signer. "SignatureRequestResponseSignatures::DECLINE_REASON": The reason provided by the signer for declining the request.