From 5fe57bc37d5b36580e9048f96e06c1b082060dec Mon Sep 17 00:00:00 2001 From: sainishm2 Date: Tue, 12 Nov 2024 12:06:30 -0800 Subject: [PATCH 1/3] added signed at in response data for get signature --- openapi-raw.yaml | 6 +++ openapi-sdk.yaml | 6 +++ openapi.yaml | 6 +++ ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...gnatureRequestResponseDataValueInitials.cs | 24 ++++++++- ...natureRequestResponseDataValueSignature.cs | 24 ++++++++- ...gnatureRequestResponseDataValueInitials.md | 1 + ...natureRequestResponseDataValueSignature.md | 1 + ...atureRequestResponseDataValueInitials.java | 52 +++++++++++++++++- ...tureRequestResponseDataValueSignature.java | 53 +++++++++++++++++- ...gnatureRequestResponseDataValueInitials.md | 1 + ...natureRequestResponseDataValueSignature.md | 1 + ...atureRequestResponseDataValueInitials.java | 54 ++++++++++++++++++- ...tureRequestResponseDataValueSignature.java | 54 ++++++++++++++++++- sdks/node/dist/api.js | 10 ++++ ...gnatureRequestResponseDataValueInitials.md | 1 + ...natureRequestResponseDataValueSignature.md | 1 + ...gnatureRequestResponseDataValueInitials.ts | 9 ++++ ...natureRequestResponseDataValueSignature.ts | 9 ++++ ...atureRequestResponseDataValueInitials.d.ts | 1 + ...tureRequestResponseDataValueSignature.d.ts | 1 + ...gnatureRequestResponseDataValueInitials.md | 1 + ...natureRequestResponseDataValueSignature.md | 1 + ...natureRequestResponseDataValueInitials.php | 34 ++++++++++++ ...atureRequestResponseDataValueSignature.php | 34 ++++++++++++ ...gnatureRequestResponseDataValueInitials.md | 1 + ...natureRequestResponseDataValueSignature.md | 1 + ...re_request_response_data_value_initials.py | 9 +++- ...e_request_response_data_value_signature.py | 9 +++- ...gnatureRequestResponseDataValueInitials.md | 1 + ...natureRequestResponseDataValueSignature.md | 1 + ...re_request_response_data_value_initials.rb | 19 +++++-- ...e_request_response_data_value_signature.rb | 19 +++++-- .../SignatureRequestGetResponse.json | 2 + translations/en.yaml | 1 + 36 files changed, 430 insertions(+), 22 deletions(-) diff --git a/openapi-raw.yaml b/openapi-raw.yaml index b493b4b23..8647bfc00 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -11062,6 +11062,9 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string + signed_at: + description: '_t__SignatureRequestResponseDataValue::SIGNED_AT' + type: integer type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11090,6 +11093,9 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string + signed_at: + description: '_t__SignatureRequestResponseDataValue::SIGNED_AT' + type: integer type: object SignatureRequestResponseDataValueText: allOf: diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 2b22c38d0..f5187c612 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -11678,6 +11678,9 @@ components: value: description: 'The value of the form field.' type: string + signed_at: + description: 'This field contains the signed at timestamp when the type is either signature or initial.' + type: integer type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11706,6 +11709,9 @@ components: value: description: 'The value of the form field.' type: string + signed_at: + description: 'This field contains the signed at timestamp when the type is either signature or initial.' + type: integer type: object SignatureRequestResponseDataValueText: allOf: diff --git a/openapi.yaml b/openapi.yaml index 01b6a27be..5bcb82f3c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11648,6 +11648,9 @@ components: value: description: 'The value of the form field.' type: string + signed_at: + description: 'This field contains the signed at timestamp when the type is either signature or initial.' + type: integer type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11676,6 +11679,9 @@ components: value: description: 'The value of the form field.' type: string + signed_at: + description: 'This field contains the signed at timestamp when the type is either signature or initial.' + type: integer type: object SignatureRequestResponseDataValueText: allOf: diff --git a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index fcd9ab1f8..f52dda145 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] **SignedAt** | **int** | This field contains the signed at timestamp when the type is either signature or initial. | [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..dcef7340c 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] **SignedAt** | **int** | This field contains the signed at timestamp when the type is either signature or initial. | [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..a38c9eba7 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 signed at timestamp when the type is either signature or initial.. /// 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), int signedAt = default(int), 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.SignedAt = signedAt; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the signed at timestamp when the type is either signature or initial. + /// + /// This field contains the signed at timestamp when the type is either signature or initial. + [DataMember(Name = "signed_at", EmitDefaultValue = true)] + public int SignedAt { 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(" SignedAt: ").Append(SignedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,10 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.SignedAt == input.SignedAt || + this.SignedAt.Equals(input.SignedAt) ); } @@ -164,6 +178,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); return hashCode; } } @@ -208,6 +223,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "signed_at", + Property = "SignedAt", + Type = "int", + Value = SignedAt, + }); return types; } diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index c5c2d5392..e760c99c6 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 signed at timestamp when the type is either signature or initial.. /// 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), int signedAt = default(int), 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.SignedAt = signedAt; } /// @@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) [DataMember(Name = "value", EmitDefaultValue = true)] public string Value { get; set; } + /// + /// This field contains the signed at timestamp when the type is either signature or initial. + /// + /// This field contains the signed at timestamp when the type is either signature or initial. + [DataMember(Name = "signed_at", EmitDefaultValue = true)] + public int SignedAt { 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(" SignedAt: ").Append(SignedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -144,6 +154,10 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) this.Value == input.Value || (this.Value != null && this.Value.Equals(input.Value)) + ) && base.Equals(input) && + ( + this.SignedAt == input.SignedAt || + this.SignedAt.Equals(input.SignedAt) ); } @@ -164,6 +178,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } + hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); return hashCode; } } @@ -208,6 +223,13 @@ public List GetOpenApiTypes() Type = "string", Value = Value, }); + types.Add(new OpenApiType() + { + Name = "signed_at", + Property = "SignedAt", + Type = "int", + Value = SignedAt, + }); return types; } diff --git a/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md b/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md index 7f82d742c..a62c90e35 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. | | +| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | diff --git a/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md b/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md index 910932c19..4b050dd64 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. | | +| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | 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..0c45c9e86 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_SIGNED_AT }) @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_SIGNED_AT = "signed_at"; + private Integer signedAt; + public SignatureRequestResponseDataValueInitials() {} /** @@ -110,6 +114,28 @@ public void setValue(String value) { this.value = value; } + public SignatureRequestResponseDataValueInitials signedAt(Integer signedAt) { + this.signedAt = signedAt; + return this; + } + + /** + * This field contains the signed at timestamp when the type is either signature or initial. + * + * @return signedAt + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSignedAt() { + return signedAt; + } + + @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSignedAt(Integer signedAt) { + this.signedAt = signedAt; + } + /** 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.signedAt, signatureRequestResponseDataValueInitials.signedAt) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, signedAt, 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(" signedAt: ").append(toIndentedString(signedAt)).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 (signedAt != null) { + if (isFileTypeOrListOfFiles(signedAt)) { + fileTypeFound = true; + } + + if (signedAt.getClass().equals(java.io.File.class) + || signedAt.getClass().equals(Integer.class) + || signedAt.getClass().equals(String.class) + || signedAt.getClass().isEnum()) { + map.put("signed_at", signedAt); + } else if (isListOfFile(signedAt)) { + for (int i = 0; i < getListSize(signedAt); i++) { + map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + } + } else { + map.put( + "signed_at", + JSON.getDefault().getMapper().writeValueAsString(signedAt)); + } + } } 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..27151d6e2 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_SIGNED_AT }) @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_SIGNED_AT = "signed_at"; + private Integer signedAt; + public SignatureRequestResponseDataValueSignature() {} /** @@ -111,6 +115,28 @@ public void setValue(String value) { this.value = value; } + public SignatureRequestResponseDataValueSignature signedAt(Integer signedAt) { + this.signedAt = signedAt; + return this; + } + + /** + * This field contains the signed at timestamp when the type is either signature or initial. + * + * @return signedAt + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSignedAt() { + return signedAt; + } + + @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSignedAt(Integer signedAt) { + this.signedAt = signedAt; + } + /** 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.signedAt, signatureRequestResponseDataValueSignature.signedAt) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, signedAt, 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(" signedAt: ").append(toIndentedString(signedAt)).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 (signedAt != null) { + if (isFileTypeOrListOfFiles(signedAt)) { + fileTypeFound = true; + } + + if (signedAt.getClass().equals(java.io.File.class) + || signedAt.getClass().equals(Integer.class) + || signedAt.getClass().equals(String.class) + || signedAt.getClass().isEnum()) { + map.put("signed_at", signedAt); + } else if (isListOfFile(signedAt)) { + for (int i = 0; i < getListSize(signedAt); i++) { + map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + } + } else { + map.put( + "signed_at", + JSON.getDefault().getMapper().writeValueAsString(signedAt)); + } + } } 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..a62c90e35 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. | | +| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | diff --git a/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md b/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md index 910932c19..4b050dd64 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. | | +| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | 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..ddab47949 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_SIGNED_AT }) @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_SIGNED_AT = "signed_at"; + private Integer signedAt; + public SignatureRequestResponseDataValueInitials() { } @@ -122,6 +126,31 @@ public void setValue(String value) { } + public SignatureRequestResponseDataValueInitials signedAt(Integer signedAt) { + this.signedAt = signedAt; + return this; + } + + /** + * This field contains the signed at timestamp when the type is either signature or initial. + * @return signedAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getSignedAt() { + return signedAt; + } + + + @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSignedAt(Integer signedAt) { + this.signedAt = signedAt; + } + + /** * 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.signedAt, signatureRequestResponseDataValueInitials.signedAt) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, signedAt, 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(" signedAt: ").append(toIndentedString(signedAt)).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 (signedAt != null) { + if (isFileTypeOrListOfFiles(signedAt)) { + fileTypeFound = true; + } + + if (signedAt.getClass().equals(java.io.File.class) || + signedAt.getClass().equals(Integer.class) || + signedAt.getClass().equals(String.class) || + signedAt.getClass().isEnum()) { + map.put("signed_at", signedAt); + } else if (isListOfFile(signedAt)) { + for(int i = 0; i< getListSize(signedAt); i++) { + map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + } + } + else { + map.put("signed_at", JSON.getDefault().getMapper().writeValueAsString(signedAt)); + } + } } 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..4b2f8a129 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_SIGNED_AT }) @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_SIGNED_AT = "signed_at"; + private Integer signedAt; + public SignatureRequestResponseDataValueSignature() { } @@ -122,6 +126,31 @@ public void setValue(String value) { } + public SignatureRequestResponseDataValueSignature signedAt(Integer signedAt) { + this.signedAt = signedAt; + return this; + } + + /** + * This field contains the signed at timestamp when the type is either signature or initial. + * @return signedAt + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getSignedAt() { + return signedAt; + } + + + @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSignedAt(Integer signedAt) { + this.signedAt = signedAt; + } + + /** * 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.signedAt, signatureRequestResponseDataValueSignature.signedAt) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, super.hashCode()); + return Objects.hash(type, value, signedAt, 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(" signedAt: ").append(toIndentedString(signedAt)).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 (signedAt != null) { + if (isFileTypeOrListOfFiles(signedAt)) { + fileTypeFound = true; + } + + if (signedAt.getClass().equals(java.io.File.class) || + signedAt.getClass().equals(Integer.class) || + signedAt.getClass().equals(String.class) || + signedAt.getClass().isEnum()) { + map.put("signed_at", signedAt); + } else if (isListOfFile(signedAt)) { + for(int i = 0; i< getListSize(signedAt); i++) { + map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + } + } + else { + map.put("signed_at", JSON.getDefault().getMapper().writeValueAsString(signedAt)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index cf17c8610..21305fd71 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: "signedAt", + baseName: "signed_at", + type: "number" } ]; @@ -19805,6 +19810,11 @@ SignatureRequestResponseDataValueSignature.attributeTypeMap = [ name: "value", baseName: "value", type: "string" + }, + { + name: "signedAt", + baseName: "signed_at", + type: "number" } ]; diff --git a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md index 7e294a6a0..944927d72 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. | | +| `signedAt` | ```number``` | This field contains the signed at timestamp when the type is either signature or initial. | | [[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..8d5262e7e 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. | | +| `signedAt` | ```number``` | This field contains the signed at timestamp when the type is either signature or initial. | | [[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..9ecc0ed70 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 signed at timestamp when the type is either signature or initial. + */ + "signedAt"?: number; static discriminator: string | undefined = undefined; @@ -48,6 +52,11 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR baseName: "value", type: "string", }, + { + name: "signedAt", + baseName: "signed_at", + type: "number", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/model/signatureRequestResponseDataValueSignature.ts b/sdks/node/model/signatureRequestResponseDataValueSignature.ts index 99da64fac..e80072dc3 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 signed at timestamp when the type is either signature or initial. + */ + "signedAt"?: number; static discriminator: string | undefined = undefined; @@ -48,6 +52,11 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest baseName: "value", type: "string", }, + { + name: "signedAt", + baseName: "signed_at", + type: "number", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts index f6939bafb..870b22e24 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; + "signedAt"?: number; 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..9255bf062 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; + "signedAt"?: number; 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..bcbfb6cce 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. | | +| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | [[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..dccd14462 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. | | +| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | [[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..38260abc3 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', + 'signed_at' => 'int', ]; /** @@ -69,6 +70,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPIFormats = [ 'type' => null, 'value' => null, + 'signed_at' => null, ]; /** @@ -79,6 +81,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static array $openAPINullables = [ 'type' => false, 'value' => false, + 'signed_at' => false, ]; /** @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', + 'signed_at' => 'signed_at', ]; /** @@ -171,6 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', + 'signed_at' => 'setSignedAt', ]; /** @@ -181,6 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', + 'signed_at' => 'getSignedAt', ]; /** @@ -236,6 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'initials'); $this->setIfExists('value', $data ?? [], null); + $this->setIfExists('signed_at', $data ?? [], null); } /** @@ -349,6 +356,33 @@ public function setValue(?string $value) return $this; } + /** + * Gets signed_at + * + * @return int|null + */ + public function getSignedAt() + { + return $this->container['signed_at']; + } + + /** + * Sets signed_at + * + * @param int|null $signed_at this field contains the signed at timestamp when the type is either signature or initial + * + * @return self + */ + public function setSignedAt(?int $signed_at) + { + if (is_null($signed_at)) { + throw new InvalidArgumentException('non-nullable signed_at cannot be null'); + } + $this->container['signed_at'] = $signed_at; + + 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..5e86cf7f3 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', + 'signed_at' => 'int', ]; /** @@ -69,6 +70,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPIFormats = [ 'type' => null, 'value' => null, + 'signed_at' => null, ]; /** @@ -79,6 +81,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static array $openAPINullables = [ 'type' => false, 'value' => false, + 'signed_at' => false, ]; /** @@ -161,6 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', + 'signed_at' => 'signed_at', ]; /** @@ -171,6 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', + 'signed_at' => 'setSignedAt', ]; /** @@ -181,6 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', + 'signed_at' => 'getSignedAt', ]; /** @@ -236,6 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'signature'); $this->setIfExists('value', $data ?? [], null); + $this->setIfExists('signed_at', $data ?? [], null); } /** @@ -349,6 +356,33 @@ public function setValue(?string $value) return $this; } + /** + * Gets signed_at + * + * @return int|null + */ + public function getSignedAt() + { + return $this->container['signed_at']; + } + + /** + * Sets signed_at + * + * @param int|null $signed_at this field contains the signed at timestamp when the type is either signature or initial + * + * @return self + */ + public function setSignedAt(?int $signed_at) + { + if (is_null($signed_at)) { + throw new InvalidArgumentException('non-nullable signed_at cannot be null'); + } + $this->container['signed_at'] = $signed_at; + + 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..a8b6dcb5a 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. | | +| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | [[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..5dbb19cec 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. | | +| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | [[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..285c86454 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, StrictInt, 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." ) + signed_at: Optional[StrictInt] = Field( + default=None, + description="This field contains the signed at timestamp when the type is either signature or initial.", + ) __properties: ClassVar[List[str]] = [ "api_id", "signature_id", @@ -48,6 +52,7 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase "required", "type", "value", + "signed_at", ] 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"), + "signed_at": obj.get("signed_at"), } ) return _obj @@ -138,6 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", + "signed_at": "(int,)", "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..d822403c9 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, StrictInt, 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." ) + signed_at: Optional[StrictInt] = Field( + default=None, + description="This field contains the signed at timestamp when the type is either signature or initial.", + ) __properties: ClassVar[List[str]] = [ "api_id", "signature_id", @@ -48,6 +52,7 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas "required", "type", "value", + "signed_at", ] 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"), + "signed_at": obj.get("signed_at"), } ) return _obj @@ -138,6 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", + "signed_at": "(int,)", "api_id": "(str,)", "signature_id": "(str,)", "name": "(str,)", diff --git a/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md b/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md index b941e57e0..67ba2b7f9 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. | | +| `signed_at` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | diff --git a/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md b/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md index 83e106c4a..605c9e841 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. | | +| `signed_at` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | 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..f490af444 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 signed at timestamp when the type is either signature or initial. + # @return [Integer] + attr_accessor :signed_at + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'value' => :'value' + :'value' => :'value', + :'signed_at' => :'signed_at' } end @@ -43,7 +48,8 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'value' => :'String' + :'value' => :'String', + :'signed_at' => :'Integer' } end @@ -105,6 +111,10 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] end + + if attributes.key?(:'signed_at') + self.signed_at = attributes[:'signed_at'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,7 +136,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - value == o.value && super(o) + value == o.value && + signed_at == o.signed_at && super(o) end # @see the `==` method @@ -138,7 +149,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value].hash + [type, value, signed_at].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..517af56c5 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 signed at timestamp when the type is either signature or initial. + # @return [Integer] + attr_accessor :signed_at + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'value' => :'value' + :'value' => :'value', + :'signed_at' => :'signed_at' } end @@ -43,7 +48,8 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'value' => :'String' + :'value' => :'String', + :'signed_at' => :'Integer' } end @@ -105,6 +111,10 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] end + + if attributes.key?(:'signed_at') + self.signed_at = attributes[:'signed_at'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -126,7 +136,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - value == o.value && super(o) + value == o.value && + signed_at == o.signed_at && super(o) end # @see the `==` method @@ -138,7 +149,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value].hash + [type, value, signed_at].hash end # Builds the object from hash diff --git a/test_fixtures/SignatureRequestGetResponse.json b/test_fixtures/SignatureRequestGetResponse.json index c545f87b5..d29494657 100644 --- a/test_fixtures/SignatureRequestGetResponse.json +++ b/test_fixtures/SignatureRequestGetResponse.json @@ -99,6 +99,7 @@ "required": true, "api_id": "initial__1", "value": "YM", + "signed_at": 1570471067, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" }, { @@ -115,6 +116,7 @@ "required": true, "api_id": "signature__1", "value": "John Doe", + "signed_at": 1570471067, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" } ], diff --git a/translations/en.yaml b/translations/en.yaml index 6397d4aa8..d1b9284a4 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::SIGNED_AT": This field contains the signed at timestamp when the type is either signature or initial. "SignatureRequestResponseSignatures::DESCRIPTION": An array of signature objects, 1 for each signer. "SignatureRequestResponseSignatures::DECLINE_REASON": The reason provided by the signer for declining the request. From c890f6a10e847d84e5a336e5c2f43cc0f307a5e5 Mon Sep 17 00:00:00 2001 From: sainishm2 Date: Tue, 12 Nov 2024 13:05:49 -0800 Subject: [PATCH 2/3] make field nullable --- openapi-raw.yaml | 2 ++ openapi-sdk.yaml | 2 ++ openapi.yaml | 2 ++ .../SignatureRequestResponseDataValueInitials.md | 2 +- .../SignatureRequestResponseDataValueSignature.md | 2 +- .../SignatureRequestResponseDataValueInitials.cs | 14 +++++++++----- .../SignatureRequestResponseDataValueSignature.cs | 14 +++++++++----- .../signatureRequestResponseDataValueInitials.ts | 2 +- .../signatureRequestResponseDataValueSignature.ts | 2 +- .../signatureRequestResponseDataValueInitials.d.ts | 2 +- ...signatureRequestResponseDataValueSignature.d.ts | 2 +- .../SignatureRequestResponseDataValueInitials.php | 11 +++++++++-- .../SignatureRequestResponseDataValueSignature.php | 11 +++++++++-- ...gnature_request_response_data_value_initials.rb | 3 ++- ...nature_request_response_data_value_signature.rb | 3 ++- 15 files changed, 52 insertions(+), 22 deletions(-) diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 8647bfc00..6ea55887e 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -11065,6 +11065,7 @@ components: signed_at: description: '_t__SignatureRequestResponseDataValue::SIGNED_AT' type: integer + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11096,6 +11097,7 @@ components: signed_at: description: '_t__SignatureRequestResponseDataValue::SIGNED_AT' type: integer + nullable: true type: object SignatureRequestResponseDataValueText: allOf: diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index f5187c612..747f77547 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -11681,6 +11681,7 @@ components: signed_at: description: 'This field contains the signed at timestamp when the type is either signature or initial.' type: integer + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11712,6 +11713,7 @@ components: signed_at: description: 'This field contains the signed at timestamp when the type is either signature or initial.' type: integer + nullable: true type: object SignatureRequestResponseDataValueText: allOf: diff --git a/openapi.yaml b/openapi.yaml index 5bcb82f3c..3609f5378 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11651,6 +11651,7 @@ components: signed_at: description: 'This field contains the signed at timestamp when the type is either signature or initial.' type: integer + nullable: true type: object SignatureRequestResponseDataValueRadio: allOf: @@ -11682,6 +11683,7 @@ components: signed_at: description: 'This field contains the signed at timestamp when the type is either signature or initial.' type: integer + nullable: true type: object SignatureRequestResponseDataValueText: allOf: diff --git a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index f52dda145..fb1ec800b 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] **SignedAt** | **int** | This field contains the signed at timestamp when the type is either signature or initial. | [optional] +**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] **SignedAt** | **int?** | This field contains the signed at timestamp when the type is either signature or initial. | [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 dcef7340c..fe709a9f6 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] **SignedAt** | **int** | This field contains the signed at timestamp when the type is either signature or initial. | [optional] +**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] **SignedAt** | **int?** | This field contains the signed at timestamp when the type is either signature or initial. | [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 a38c9eba7..854d93b14 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -48,7 +48,7 @@ protected SignatureRequestResponseDataValueInitials() { } /// 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), int signedAt = default(int), 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), int? signedAt = default(int?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -96,7 +96,7 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) /// /// This field contains the signed at timestamp when the type is either signature or initial. [DataMember(Name = "signed_at", EmitDefaultValue = true)] - public int SignedAt { get; set; } + public int? SignedAt { get; set; } /// /// Returns the string presentation of the object @@ -157,7 +157,8 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) ) && base.Equals(input) && ( this.SignedAt == input.SignedAt || - this.SignedAt.Equals(input.SignedAt) + (this.SignedAt != null && + this.SignedAt.Equals(input.SignedAt)) ); } @@ -178,7 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } - hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); + if (this.SignedAt != null) + { + hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); + } return hashCode; } } @@ -227,7 +231,7 @@ public List GetOpenApiTypes() { Name = "signed_at", Property = "SignedAt", - Type = "int", + Type = "int?", Value = SignedAt, }); diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs index e760c99c6..4000f071f 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -48,7 +48,7 @@ protected SignatureRequestResponseDataValueSignature() { } /// 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), int signedAt = default(int), 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), int? signedAt = default(int?), string apiId = default(string), string signatureId = default(string), string name = default(string), bool required = default(bool)) { this.ApiId = apiId; this.SignatureId = signatureId; @@ -96,7 +96,7 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) /// /// This field contains the signed at timestamp when the type is either signature or initial. [DataMember(Name = "signed_at", EmitDefaultValue = true)] - public int SignedAt { get; set; } + public int? SignedAt { get; set; } /// /// Returns the string presentation of the object @@ -157,7 +157,8 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) ) && base.Equals(input) && ( this.SignedAt == input.SignedAt || - this.SignedAt.Equals(input.SignedAt) + (this.SignedAt != null && + this.SignedAt.Equals(input.SignedAt)) ); } @@ -178,7 +179,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } - hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); + if (this.SignedAt != null) + { + hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); + } return hashCode; } } @@ -227,7 +231,7 @@ public List GetOpenApiTypes() { Name = "signed_at", Property = "SignedAt", - Type = "int", + Type = "int?", Value = SignedAt, }); diff --git a/sdks/node/model/signatureRequestResponseDataValueInitials.ts b/sdks/node/model/signatureRequestResponseDataValueInitials.ts index 9ecc0ed70..6c8e61942 100644 --- a/sdks/node/model/signatureRequestResponseDataValueInitials.ts +++ b/sdks/node/model/signatureRequestResponseDataValueInitials.ts @@ -37,7 +37,7 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR /** * This field contains the signed at timestamp when the type is either signature or initial. */ - "signedAt"?: number; + "signedAt"?: number | null; static discriminator: string | undefined = undefined; diff --git a/sdks/node/model/signatureRequestResponseDataValueSignature.ts b/sdks/node/model/signatureRequestResponseDataValueSignature.ts index e80072dc3..738a888ad 100644 --- a/sdks/node/model/signatureRequestResponseDataValueSignature.ts +++ b/sdks/node/model/signatureRequestResponseDataValueSignature.ts @@ -37,7 +37,7 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest /** * This field contains the signed at timestamp when the type is either signature or initial. */ - "signedAt"?: number; + "signedAt"?: number | null; static discriminator: string | undefined = undefined; diff --git a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts index 870b22e24..03ca475de 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts @@ -3,7 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueInitials extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; - "signedAt"?: number; + "signedAt"?: number | 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 9255bf062..da89ef11b 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts @@ -3,7 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueSignature extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; - "signedAt"?: number; + "signedAt"?: number | null; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php index 38260abc3..746878560 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php @@ -81,7 +81,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static array $openAPINullables = [ 'type' => false, 'value' => false, - 'signed_at' => false, + 'signed_at' => true, ]; /** @@ -376,7 +376,14 @@ public function getSignedAt() public function setSignedAt(?int $signed_at) { if (is_null($signed_at)) { - throw new InvalidArgumentException('non-nullable signed_at cannot be null'); + array_push($this->openAPINullablesSetToNull, 'signed_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('signed_at', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['signed_at'] = $signed_at; diff --git a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php index 5e86cf7f3..9a1e742ed 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php @@ -81,7 +81,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static array $openAPINullables = [ 'type' => false, 'value' => false, - 'signed_at' => false, + 'signed_at' => true, ]; /** @@ -376,7 +376,14 @@ public function getSignedAt() public function setSignedAt(?int $signed_at) { if (is_null($signed_at)) { - throw new InvalidArgumentException('non-nullable signed_at cannot be null'); + array_push($this->openAPINullablesSetToNull, 'signed_at'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('signed_at', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } } $this->container['signed_at'] = $signed_at; 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 f490af444..446d9b453 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 @@ -27,7 +27,7 @@ class SignatureRequestResponseDataValueInitials < SignatureRequestResponseDataBa attr_accessor :value # This field contains the signed at timestamp when the type is either signature or initial. - # @return [Integer] + # @return [Integer, nil] attr_accessor :signed_at # Attribute mapping from ruby-style variable name to JSON key. @@ -56,6 +56,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'signed_at' ]) end 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 517af56c5..b61dc9710 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 @@ -27,7 +27,7 @@ class SignatureRequestResponseDataValueSignature < SignatureRequestResponseDataB attr_accessor :value # This field contains the signed at timestamp when the type is either signature or initial. - # @return [Integer] + # @return [Integer, nil] attr_accessor :signed_at # Attribute mapping from ruby-style variable name to JSON key. @@ -56,6 +56,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'signed_at' ]) end From e3924bc632fb93a757baa1de6a4f85314ae1925b Mon Sep 17 00:00:00 2001 From: sainishm2 Date: Wed, 13 Nov 2024 15:56:51 -0800 Subject: [PATCH 3/3] change field type --- openapi-raw.yaml | 12 ++-- openapi-sdk.yaml | 12 ++-- openapi.yaml | 12 ++-- ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...gnatureRequestResponseDataValueInitials.cs | 34 +++++------ ...natureRequestResponseDataValueSignature.cs | 34 +++++------ ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...atureRequestResponseDataValueInitials.java | 56 +++++++++---------- ...tureRequestResponseDataValueSignature.java | 56 +++++++++---------- ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...atureRequestResponseDataValueInitials.java | 54 +++++++++--------- ...tureRequestResponseDataValueSignature.java | 54 +++++++++--------- sdks/node/dist/api.js | 12 ++-- ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...gnatureRequestResponseDataValueInitials.ts | 10 ++-- ...natureRequestResponseDataValueSignature.ts | 10 ++-- ...atureRequestResponseDataValueInitials.d.ts | 2 +- ...tureRequestResponseDataValueSignature.d.ts | 2 +- ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...natureRequestResponseDataValueInitials.php | 36 ++++++------ ...atureRequestResponseDataValueSignature.php | 36 ++++++------ ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...re_request_response_data_value_initials.py | 12 ++-- ...e_request_response_data_value_signature.py | 12 ++-- ...gnatureRequestResponseDataValueInitials.md | 2 +- ...natureRequestResponseDataValueSignature.md | 2 +- ...re_request_response_data_value_initials.rb | 20 +++---- ...e_request_response_data_value_signature.rb | 20 +++---- .../SignatureRequestGetResponse.json | 4 +- translations/en.yaml | 2 +- 36 files changed, 265 insertions(+), 265 deletions(-) diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 6ea55887e..4ad38accb 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -11062,9 +11062,9 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string - signed_at: - description: '_t__SignatureRequestResponseDataValue::SIGNED_AT' - type: integer + is_signed: + description: '_t__SignatureRequestResponseDataValue::IS_SIGNED' + type: boolean nullable: true type: object SignatureRequestResponseDataValueRadio: @@ -11094,9 +11094,9 @@ components: value: description: '_t__SignatureRequestResponseDataValue::VALUE' type: string - signed_at: - description: '_t__SignatureRequestResponseDataValue::SIGNED_AT' - type: integer + is_signed: + description: '_t__SignatureRequestResponseDataValue::IS_SIGNED' + type: boolean nullable: true type: object SignatureRequestResponseDataValueText: diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 747f77547..a5a1a0198 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -11678,9 +11678,9 @@ components: value: description: 'The value of the form field.' type: string - signed_at: - description: 'This field contains the signed at timestamp when the type is either signature or initial.' - type: integer + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean nullable: true type: object SignatureRequestResponseDataValueRadio: @@ -11710,9 +11710,9 @@ components: value: description: 'The value of the form field.' type: string - signed_at: - description: 'This field contains the signed at timestamp when the type is either signature or initial.' - type: integer + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean nullable: true type: object SignatureRequestResponseDataValueText: diff --git a/openapi.yaml b/openapi.yaml index 3609f5378..6862170aa 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11648,9 +11648,9 @@ components: value: description: 'The value of the form field.' type: string - signed_at: - description: 'This field contains the signed at timestamp when the type is either signature or initial.' - type: integer + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean nullable: true type: object SignatureRequestResponseDataValueRadio: @@ -11680,9 +11680,9 @@ components: value: description: 'The value of the form field.' type: string - signed_at: - description: 'This field contains the signed at timestamp when the type is either signature or initial.' - type: integer + is_signed: + description: 'This field contains the boolean true if the field is signed.' + type: boolean nullable: true type: object SignatureRequestResponseDataValueText: diff --git a/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md b/sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md index fb1ec800b..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] **SignedAt** | **int?** | This field contains the signed at timestamp when the type is either signature or initial. | [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 fe709a9f6..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] **SignedAt** | **int?** | This field contains the signed at timestamp when the type is either signature or initial. | [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 854d93b14..023ee3d63 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs @@ -43,12 +43,12 @@ protected SignatureRequestResponseDataValueInitials() { } /// /// An input field for initials (default to "initials"). /// The value of the form field.. - /// This field contains the signed at timestamp when the type is either signature or initial.. + /// 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), int? signedAt = default(int?), 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; @@ -58,7 +58,7 @@ protected SignatureRequestResponseDataValueInitials() { } // use default value if no "type" provided this.Type = type ?? "initials"; this.Value = value; - this.SignedAt = signedAt; + this.IsSigned = isSigned; } /// @@ -92,11 +92,11 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData) public string Value { get; set; } /// - /// This field contains the signed at timestamp when the type is either signature or initial. + /// This field contains the boolean true if the field is signed. /// - /// This field contains the signed at timestamp when the type is either signature or initial. - [DataMember(Name = "signed_at", EmitDefaultValue = true)] - public int? SignedAt { get; set; } + /// 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 @@ -109,7 +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(" SignedAt: ").Append(SignedAt).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -156,9 +156,9 @@ public bool Equals(SignatureRequestResponseDataValueInitials input) this.Value.Equals(input.Value)) ) && base.Equals(input) && ( - this.SignedAt == input.SignedAt || - (this.SignedAt != null && - this.SignedAt.Equals(input.SignedAt)) + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -179,9 +179,9 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } - if (this.SignedAt != null) + if (this.IsSigned != null) { - hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); } return hashCode; } @@ -229,10 +229,10 @@ public List GetOpenApiTypes() }); types.Add(new OpenApiType() { - Name = "signed_at", - Property = "SignedAt", - Type = "int?", - Value = SignedAt, + 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 4000f071f..efe2bb26c 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs @@ -43,12 +43,12 @@ protected SignatureRequestResponseDataValueSignature() { } /// /// A signature input field (default to "signature"). /// The value of the form field.. - /// This field contains the signed at timestamp when the type is either signature or initial.. + /// 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), int? signedAt = default(int?), 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; @@ -58,7 +58,7 @@ protected SignatureRequestResponseDataValueSignature() { } // use default value if no "type" provided this.Type = type ?? "signature"; this.Value = value; - this.SignedAt = signedAt; + this.IsSigned = isSigned; } /// @@ -92,11 +92,11 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData) public string Value { get; set; } /// - /// This field contains the signed at timestamp when the type is either signature or initial. + /// This field contains the boolean true if the field is signed. /// - /// This field contains the signed at timestamp when the type is either signature or initial. - [DataMember(Name = "signed_at", EmitDefaultValue = true)] - public int? SignedAt { get; set; } + /// 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 @@ -109,7 +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(" SignedAt: ").Append(SignedAt).Append("\n"); + sb.Append(" IsSigned: ").Append(IsSigned).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -156,9 +156,9 @@ public bool Equals(SignatureRequestResponseDataValueSignature input) this.Value.Equals(input.Value)) ) && base.Equals(input) && ( - this.SignedAt == input.SignedAt || - (this.SignedAt != null && - this.SignedAt.Equals(input.SignedAt)) + this.IsSigned == input.IsSigned || + (this.IsSigned != null && + this.IsSigned.Equals(input.IsSigned)) ); } @@ -179,9 +179,9 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Value.GetHashCode(); } - if (this.SignedAt != null) + if (this.IsSigned != null) { - hashCode = (hashCode * 59) + this.SignedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.IsSigned.GetHashCode(); } return hashCode; } @@ -229,10 +229,10 @@ public List GetOpenApiTypes() }); types.Add(new OpenApiType() { - Name = "signed_at", - Property = "SignedAt", - Type = "int?", - Value = SignedAt, + 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 a62c90e35..760618b49 100644 --- a/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md @@ -10,7 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | An input field for initials | | | `value` | ```String``` | The value of the form field. | | -| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 4b050dd64..8cea5ac2e 100644 --- a/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md @@ -10,7 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | A signature input field | | | `value` | ```String``` | The value of the form field. | | -| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 0c45c9e86..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 @@ -28,7 +28,7 @@ @JsonPropertyOrder({ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, - SignatureRequestResponseDataValueInitials.JSON_PROPERTY_SIGNED_AT + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -48,8 +48,8 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public static final String JSON_PROPERTY_SIGNED_AT = "signed_at"; - private Integer signedAt; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; public SignatureRequestResponseDataValueInitials() {} @@ -114,26 +114,26 @@ public void setValue(String value) { this.value = value; } - public SignatureRequestResponseDataValueInitials signedAt(Integer signedAt) { - this.signedAt = signedAt; + public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + this.isSigned = isSigned; return this; } /** - * This field contains the signed at timestamp when the type is either signature or initial. + * This field contains the boolean true if the field is signed. * - * @return signedAt + * @return isSigned */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getSignedAt() { - return signedAt; + public Boolean getIsSigned() { + return isSigned; } - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedAt(Integer signedAt) { - this.signedAt = signedAt; + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; } /** Return true if this SignatureRequestResponseDataValueInitials object is equal to o. */ @@ -149,13 +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.signedAt, signatureRequestResponseDataValueInitials.signedAt) + && Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, signedAt, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -165,7 +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(" signedAt: ").append(toIndentedString(signedAt)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -211,24 +211,24 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } - if (signedAt != null) { - if (isFileTypeOrListOfFiles(signedAt)) { + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { fileTypeFound = true; } - if (signedAt.getClass().equals(java.io.File.class) - || signedAt.getClass().equals(Integer.class) - || signedAt.getClass().equals(String.class) - || signedAt.getClass().isEnum()) { - map.put("signed_at", signedAt); - } else if (isListOfFile(signedAt)) { - for (int i = 0; i < getListSize(signedAt); i++) { - map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + 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( - "signed_at", - JSON.getDefault().getMapper().writeValueAsString(signedAt)); + "is_signed", + JSON.getDefault().getMapper().writeValueAsString(isSigned)); } } } catch (Exception 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 27151d6e2..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 @@ -28,7 +28,7 @@ @JsonPropertyOrder({ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, - SignatureRequestResponseDataValueSignature.JSON_PROPERTY_SIGNED_AT + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -48,8 +48,8 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public static final String JSON_PROPERTY_SIGNED_AT = "signed_at"; - private Integer signedAt; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; public SignatureRequestResponseDataValueSignature() {} @@ -115,26 +115,26 @@ public void setValue(String value) { this.value = value; } - public SignatureRequestResponseDataValueSignature signedAt(Integer signedAt) { - this.signedAt = signedAt; + public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + this.isSigned = isSigned; return this; } /** - * This field contains the signed at timestamp when the type is either signature or initial. + * This field contains the boolean true if the field is signed. * - * @return signedAt + * @return isSigned */ - @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getSignedAt() { - return signedAt; + public Boolean getIsSigned() { + return isSigned; } - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedAt(Integer signedAt) { - this.signedAt = signedAt; + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; } /** Return true if this SignatureRequestResponseDataValueSignature object is equal to o. */ @@ -151,13 +151,13 @@ public boolean equals(Object o) { return Objects.equals(this.type, signatureRequestResponseDataValueSignature.type) && Objects.equals(this.value, signatureRequestResponseDataValueSignature.value) && Objects.equals( - this.signedAt, signatureRequestResponseDataValueSignature.signedAt) + this.isSigned, signatureRequestResponseDataValueSignature.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, signedAt, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -167,7 +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(" signedAt: ").append(toIndentedString(signedAt)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -213,24 +213,24 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } - if (signedAt != null) { - if (isFileTypeOrListOfFiles(signedAt)) { + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { fileTypeFound = true; } - if (signedAt.getClass().equals(java.io.File.class) - || signedAt.getClass().equals(Integer.class) - || signedAt.getClass().equals(String.class) - || signedAt.getClass().isEnum()) { - map.put("signed_at", signedAt); - } else if (isListOfFile(signedAt)) { - for (int i = 0; i < getListSize(signedAt); i++) { - map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + 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( - "signed_at", - JSON.getDefault().getMapper().writeValueAsString(signedAt)); + "is_signed", + JSON.getDefault().getMapper().writeValueAsString(isSigned)); } } } catch (Exception e) { diff --git a/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md b/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md index a62c90e35..760618b49 100644 --- a/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/java-v2/docs/SignatureRequestResponseDataValueInitials.md @@ -10,7 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | An input field for initials | | | `value` | ```String``` | The value of the form field. | | -| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 4b050dd64..8cea5ac2e 100644 --- a/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/java-v2/docs/SignatureRequestResponseDataValueSignature.md @@ -10,7 +10,7 @@ |------------ | ------------- | ------------- | -------------| | `type` | ```String``` | A signature input field | | | `value` | ```String``` | The value of the form field. | | -| `signedAt` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 ddab47949..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 @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE, - SignatureRequestResponseDataValueInitials.JSON_PROPERTY_SIGNED_AT + SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( @@ -55,8 +55,8 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public static final String JSON_PROPERTY_SIGNED_AT = "signed_at"; - private Integer signedAt; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; public SignatureRequestResponseDataValueInitials() { } @@ -126,28 +126,28 @@ public void setValue(String value) { } - public SignatureRequestResponseDataValueInitials signedAt(Integer signedAt) { - this.signedAt = signedAt; + public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) { + this.isSigned = isSigned; return this; } /** - * This field contains the signed at timestamp when the type is either signature or initial. - * @return signedAt + * This field contains the boolean true if the field is signed. + * @return isSigned */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getSignedAt() { - return signedAt; + public Boolean getIsSigned() { + return isSigned; } - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedAt(Integer signedAt) { - this.signedAt = signedAt; + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; } @@ -165,13 +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.signedAt, signatureRequestResponseDataValueInitials.signedAt) && + Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, signedAt, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -181,7 +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(" signedAt: ").append(toIndentedString(signedAt)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -229,23 +229,23 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } - if (signedAt != null) { - if (isFileTypeOrListOfFiles(signedAt)) { + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { fileTypeFound = true; } - if (signedAt.getClass().equals(java.io.File.class) || - signedAt.getClass().equals(Integer.class) || - signedAt.getClass().equals(String.class) || - signedAt.getClass().isEnum()) { - map.put("signed_at", signedAt); - } else if (isListOfFile(signedAt)) { - for(int i = 0; i< getListSize(signedAt); i++) { - map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + 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("signed_at", JSON.getDefault().getMapper().writeValueAsString(signedAt)); + map.put("is_signed", JSON.getDefault().getMapper().writeValueAsString(isSigned)); } } } catch (Exception 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 4b2f8a129..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 @@ -39,7 +39,7 @@ @JsonPropertyOrder({ SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE, SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE, - SignatureRequestResponseDataValueSignature.JSON_PROPERTY_SIGNED_AT + SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0") @JsonIgnoreProperties( @@ -55,8 +55,8 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest public static final String JSON_PROPERTY_VALUE = "value"; private String value; - public static final String JSON_PROPERTY_SIGNED_AT = "signed_at"; - private Integer signedAt; + public static final String JSON_PROPERTY_IS_SIGNED = "is_signed"; + private Boolean isSigned; public SignatureRequestResponseDataValueSignature() { } @@ -126,28 +126,28 @@ public void setValue(String value) { } - public SignatureRequestResponseDataValueSignature signedAt(Integer signedAt) { - this.signedAt = signedAt; + public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) { + this.isSigned = isSigned; return this; } /** - * This field contains the signed at timestamp when the type is either signature or initial. - * @return signedAt + * This field contains the boolean true if the field is signed. + * @return isSigned */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getSignedAt() { - return signedAt; + public Boolean getIsSigned() { + return isSigned; } - @JsonProperty(JSON_PROPERTY_SIGNED_AT) + @JsonProperty(JSON_PROPERTY_IS_SIGNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSignedAt(Integer signedAt) { - this.signedAt = signedAt; + public void setIsSigned(Boolean isSigned) { + this.isSigned = isSigned; } @@ -165,13 +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.signedAt, signatureRequestResponseDataValueSignature.signedAt) && + Objects.equals(this.isSigned, signatureRequestResponseDataValueSignature.isSigned) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, value, signedAt, super.hashCode()); + return Objects.hash(type, value, isSigned, super.hashCode()); } @Override @@ -181,7 +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(" signedAt: ").append(toIndentedString(signedAt)).append("\n"); + sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n"); sb.append("}"); return sb.toString(); } @@ -229,23 +229,23 @@ public Map createFormData() throws ApiException { map.put("value", JSON.getDefault().getMapper().writeValueAsString(value)); } } - if (signedAt != null) { - if (isFileTypeOrListOfFiles(signedAt)) { + if (isSigned != null) { + if (isFileTypeOrListOfFiles(isSigned)) { fileTypeFound = true; } - if (signedAt.getClass().equals(java.io.File.class) || - signedAt.getClass().equals(Integer.class) || - signedAt.getClass().equals(String.class) || - signedAt.getClass().isEnum()) { - map.put("signed_at", signedAt); - } else if (isListOfFile(signedAt)) { - for(int i = 0; i< getListSize(signedAt); i++) { - map.put("signed_at[" + i + "]", getFromList(signedAt, i)); + 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("signed_at", JSON.getDefault().getMapper().writeValueAsString(signedAt)); + map.put("is_signed", JSON.getDefault().getMapper().writeValueAsString(isSigned)); } } } catch (Exception e) { diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index 21305fd71..c613b476a 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -19745,9 +19745,9 @@ SignatureRequestResponseDataValueInitials.attributeTypeMap = [ type: "string" }, { - name: "signedAt", - baseName: "signed_at", - type: "number" + name: "isSigned", + baseName: "is_signed", + type: "boolean" } ]; @@ -19812,9 +19812,9 @@ SignatureRequestResponseDataValueSignature.attributeTypeMap = [ type: "string" }, { - name: "signedAt", - baseName: "signed_at", - type: "number" + name: "isSigned", + baseName: "is_signed", + type: "boolean" } ]; diff --git a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md index 944927d72..2a80d7347 100644 --- a/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md +++ b/sdks/node/docs/model/SignatureRequestResponseDataValueInitials.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | An input field for initials | [default to 'initials'] | | `value` | ```string``` | The value of the form field. | | -| `signedAt` | ```number``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 8d5262e7e..1b76c43b5 100644 --- a/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md +++ b/sdks/node/docs/model/SignatureRequestResponseDataValueSignature.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | A signature input field | [default to 'signature'] | | `value` | ```string``` | The value of the form field. | | -| `signedAt` | ```number``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 6c8e61942..9d3975eb1 100644 --- a/sdks/node/model/signatureRequestResponseDataValueInitials.ts +++ b/sdks/node/model/signatureRequestResponseDataValueInitials.ts @@ -35,9 +35,9 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR */ "value"?: string; /** - * This field contains the signed at timestamp when the type is either signature or initial. + * This field contains the boolean true if the field is signed. */ - "signedAt"?: number | null; + "isSigned"?: boolean | null; static discriminator: string | undefined = undefined; @@ -53,9 +53,9 @@ export class SignatureRequestResponseDataValueInitials extends SignatureRequestR type: "string", }, { - name: "signedAt", - baseName: "signed_at", - type: "number", + name: "isSigned", + baseName: "is_signed", + type: "boolean", }, ]; diff --git a/sdks/node/model/signatureRequestResponseDataValueSignature.ts b/sdks/node/model/signatureRequestResponseDataValueSignature.ts index 738a888ad..dae941876 100644 --- a/sdks/node/model/signatureRequestResponseDataValueSignature.ts +++ b/sdks/node/model/signatureRequestResponseDataValueSignature.ts @@ -35,9 +35,9 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest */ "value"?: string; /** - * This field contains the signed at timestamp when the type is either signature or initial. + * This field contains the boolean true if the field is signed. */ - "signedAt"?: number | null; + "isSigned"?: boolean | null; static discriminator: string | undefined = undefined; @@ -53,9 +53,9 @@ export class SignatureRequestResponseDataValueSignature extends SignatureRequest type: "string", }, { - name: "signedAt", - baseName: "signed_at", - type: "number", + name: "isSigned", + baseName: "is_signed", + type: "boolean", }, ]; diff --git a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts index 03ca475de..060954deb 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueInitials.d.ts @@ -3,7 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueInitials extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; - "signedAt"?: number | null; + "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 da89ef11b..281a6943f 100644 --- a/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts +++ b/sdks/node/types/model/signatureRequestResponseDataValueSignature.d.ts @@ -3,7 +3,7 @@ import { SignatureRequestResponseDataBase } from "./signatureRequestResponseData export declare class SignatureRequestResponseDataValueSignature extends SignatureRequestResponseDataBase { "type"?: string; "value"?: string; - "signedAt"?: number | null; + "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 bcbfb6cce..f4bf660f6 100644 --- a/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md +++ b/sdks/php/docs/Model/SignatureRequestResponseDataValueInitials.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | An input field for initials | [default to 'initials'] | | `value` | ```string``` | The value of the form field. | | -| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 dccd14462..877febbcd 100644 --- a/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md +++ b/sdks/php/docs/Model/SignatureRequestResponseDataValueSignature.md @@ -8,6 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```string``` | A signature input field | [default to 'signature'] | | `value` | ```string``` | The value of the form field. | | -| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 746878560..25ed14574 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueInitials.php @@ -57,7 +57,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPITypes = [ 'type' => 'string', 'value' => 'string', - 'signed_at' => 'int', + 'is_signed' => 'bool', ]; /** @@ -70,7 +70,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static $openAPIFormats = [ 'type' => null, 'value' => null, - 'signed_at' => null, + 'is_signed' => null, ]; /** @@ -81,7 +81,7 @@ class SignatureRequestResponseDataValueInitials extends SignatureRequestResponse protected static array $openAPINullables = [ 'type' => false, 'value' => false, - 'signed_at' => true, + 'is_signed' => true, ]; /** @@ -164,7 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', - 'signed_at' => 'signed_at', + 'is_signed' => 'is_signed', ]; /** @@ -175,7 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', - 'signed_at' => 'setSignedAt', + 'is_signed' => 'setIsSigned', ]; /** @@ -186,7 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', - 'signed_at' => 'getSignedAt', + 'is_signed' => 'getIsSigned', ]; /** @@ -242,7 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'initials'); $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('signed_at', $data ?? [], null); + $this->setIfExists('is_signed', $data ?? [], null); } /** @@ -357,35 +357,35 @@ public function setValue(?string $value) } /** - * Gets signed_at + * Gets is_signed * - * @return int|null + * @return bool|null */ - public function getSignedAt() + public function getIsSigned() { - return $this->container['signed_at']; + return $this->container['is_signed']; } /** - * Sets signed_at + * Sets is_signed * - * @param int|null $signed_at this field contains the signed at timestamp when the type is either signature or initial + * @param bool|null $is_signed this field contains the boolean true if the field is signed * * @return self */ - public function setSignedAt(?int $signed_at) + public function setIsSigned(?bool $is_signed) { - if (is_null($signed_at)) { - array_push($this->openAPINullablesSetToNull, 'signed_at'); + if (is_null($is_signed)) { + array_push($this->openAPINullablesSetToNull, 'is_signed'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('signed_at', $nullablesSetToNull); + $index = array_search('is_signed', $nullablesSetToNull); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } } - $this->container['signed_at'] = $signed_at; + $this->container['is_signed'] = $is_signed; return $this; } diff --git a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php index 9a1e742ed..b72a8c1fc 100644 --- a/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php +++ b/sdks/php/src/Model/SignatureRequestResponseDataValueSignature.php @@ -57,7 +57,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPITypes = [ 'type' => 'string', 'value' => 'string', - 'signed_at' => 'int', + 'is_signed' => 'bool', ]; /** @@ -70,7 +70,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static $openAPIFormats = [ 'type' => null, 'value' => null, - 'signed_at' => null, + 'is_signed' => null, ]; /** @@ -81,7 +81,7 @@ class SignatureRequestResponseDataValueSignature extends SignatureRequestRespons protected static array $openAPINullables = [ 'type' => false, 'value' => false, - 'signed_at' => true, + 'is_signed' => true, ]; /** @@ -164,7 +164,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'value' => 'value', - 'signed_at' => 'signed_at', + 'is_signed' => 'is_signed', ]; /** @@ -175,7 +175,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'value' => 'setValue', - 'signed_at' => 'setSignedAt', + 'is_signed' => 'setIsSigned', ]; /** @@ -186,7 +186,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'value' => 'getValue', - 'signed_at' => 'getSignedAt', + 'is_signed' => 'getIsSigned', ]; /** @@ -242,7 +242,7 @@ public function __construct(array $data = null) $this->setIfExists('type', $data ?? [], 'signature'); $this->setIfExists('value', $data ?? [], null); - $this->setIfExists('signed_at', $data ?? [], null); + $this->setIfExists('is_signed', $data ?? [], null); } /** @@ -357,35 +357,35 @@ public function setValue(?string $value) } /** - * Gets signed_at + * Gets is_signed * - * @return int|null + * @return bool|null */ - public function getSignedAt() + public function getIsSigned() { - return $this->container['signed_at']; + return $this->container['is_signed']; } /** - * Sets signed_at + * Sets is_signed * - * @param int|null $signed_at this field contains the signed at timestamp when the type is either signature or initial + * @param bool|null $is_signed this field contains the boolean true if the field is signed * * @return self */ - public function setSignedAt(?int $signed_at) + public function setIsSigned(?bool $is_signed) { - if (is_null($signed_at)) { - array_push($this->openAPINullablesSetToNull, 'signed_at'); + if (is_null($is_signed)) { + array_push($this->openAPINullablesSetToNull, 'is_signed'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('signed_at', $nullablesSetToNull); + $index = array_search('is_signed', $nullablesSetToNull); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } } - $this->container['signed_at'] = $signed_at; + $this->container['is_signed'] = $is_signed; return $this; } diff --git a/sdks/python/docs/SignatureRequestResponseDataValueInitials.md b/sdks/python/docs/SignatureRequestResponseDataValueInitials.md index a8b6dcb5a..425498be7 100644 --- a/sdks/python/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/python/docs/SignatureRequestResponseDataValueInitials.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```str``` | An input field for initials | [default to 'initials'] | | `value` | ```str``` | The value of the form field. | | -| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 5dbb19cec..a50bcc538 100644 --- a/sdks/python/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/python/docs/SignatureRequestResponseDataValueSignature.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type` | ```str``` | A signature input field | [default to 'signature'] | | `value` | ```str``` | The value of the form field. | | -| `signed_at` | ```int``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 285c86454..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, StrictInt, 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,9 +41,9 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase value: Optional[StrictStr] = Field( default=None, description="The value of the form field." ) - signed_at: Optional[StrictInt] = Field( + is_signed: Optional[StrictBool] = Field( default=None, - description="This field contains the signed at timestamp when the type is either signature or initial.", + description="This field contains the boolean true if the field is signed.", ) __properties: ClassVar[List[str]] = [ "api_id", @@ -52,7 +52,7 @@ class SignatureRequestResponseDataValueInitials(SignatureRequestResponseDataBase "required", "type", "value", - "signed_at", + "is_signed", ] model_config = ConfigDict( @@ -124,7 +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"), - "signed_at": obj.get("signed_at"), + "is_signed": obj.get("is_signed"), } ) return _obj @@ -144,7 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", - "signed_at": "(int,)", + "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 d822403c9..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, StrictInt, 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,9 +41,9 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas value: Optional[StrictStr] = Field( default=None, description="The value of the form field." ) - signed_at: Optional[StrictInt] = Field( + is_signed: Optional[StrictBool] = Field( default=None, - description="This field contains the signed at timestamp when the type is either signature or initial.", + description="This field contains the boolean true if the field is signed.", ) __properties: ClassVar[List[str]] = [ "api_id", @@ -52,7 +52,7 @@ class SignatureRequestResponseDataValueSignature(SignatureRequestResponseDataBas "required", "type", "value", - "signed_at", + "is_signed", ] model_config = ConfigDict( @@ -124,7 +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"), - "signed_at": obj.get("signed_at"), + "is_signed": obj.get("is_signed"), } ) return _obj @@ -144,7 +144,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "value": "(str,)", - "signed_at": "(int,)", + "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 67ba2b7f9..348042eed 100644 --- a/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md +++ b/sdks/ruby/docs/SignatureRequestResponseDataValueInitials.md @@ -8,5 +8,5 @@ | ---- | ---- | ----------- | ----- | | `type` | ```String``` | An input field for initials | [default to 'initials'] | | `value` | ```String``` | The value of the form field. | | -| `signed_at` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 605c9e841..78eb1d732 100644 --- a/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md +++ b/sdks/ruby/docs/SignatureRequestResponseDataValueSignature.md @@ -8,5 +8,5 @@ | ---- | ---- | ----------- | ----- | | `type` | ```String``` | A signature input field | [default to 'signature'] | | `value` | ```String``` | The value of the form field. | | -| `signed_at` | ```Integer``` | This field contains the signed at timestamp when the type is either signature or initial. | | +| `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 446d9b453..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,16 +26,16 @@ class SignatureRequestResponseDataValueInitials < SignatureRequestResponseDataBa # @return [String] attr_accessor :value - # This field contains the signed at timestamp when the type is either signature or initial. - # @return [Integer, nil] - attr_accessor :signed_at + # 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', - :'signed_at' => :'signed_at' + :'is_signed' => :'is_signed' } end @@ -49,14 +49,14 @@ def self.openapi_types { :'type' => :'String', :'value' => :'String', - :'signed_at' => :'Integer' + :'is_signed' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'signed_at' + :'is_signed' ]) end @@ -113,8 +113,8 @@ def initialize(attributes = {}) self.value = attributes[:'value'] end - if attributes.key?(:'signed_at') - self.signed_at = attributes[:'signed_at'] + if attributes.key?(:'is_signed') + self.is_signed = attributes[:'is_signed'] end end @@ -138,7 +138,7 @@ def ==(o) self.class == o.class && type == o.type && value == o.value && - signed_at == o.signed_at && super(o) + is_signed == o.is_signed && super(o) end # @see the `==` method @@ -150,7 +150,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value, signed_at].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 b61dc9710..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,16 +26,16 @@ class SignatureRequestResponseDataValueSignature < SignatureRequestResponseDataB # @return [String] attr_accessor :value - # This field contains the signed at timestamp when the type is either signature or initial. - # @return [Integer, nil] - attr_accessor :signed_at + # 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', - :'signed_at' => :'signed_at' + :'is_signed' => :'is_signed' } end @@ -49,14 +49,14 @@ def self.openapi_types { :'type' => :'String', :'value' => :'String', - :'signed_at' => :'Integer' + :'is_signed' => :'Boolean' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'signed_at' + :'is_signed' ]) end @@ -113,8 +113,8 @@ def initialize(attributes = {}) self.value = attributes[:'value'] end - if attributes.key?(:'signed_at') - self.signed_at = attributes[:'signed_at'] + if attributes.key?(:'is_signed') + self.is_signed = attributes[:'is_signed'] end end @@ -138,7 +138,7 @@ def ==(o) self.class == o.class && type == o.type && value == o.value && - signed_at == o.signed_at && super(o) + is_signed == o.is_signed && super(o) end # @see the `==` method @@ -150,7 +150,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, value, signed_at].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 d29494657..f0fda3c1c 100644 --- a/test_fixtures/SignatureRequestGetResponse.json +++ b/test_fixtures/SignatureRequestGetResponse.json @@ -99,7 +99,7 @@ "required": true, "api_id": "initial__1", "value": "YM", - "signed_at": 1570471067, + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" }, { @@ -116,7 +116,7 @@ "required": true, "api_id": "signature__1", "value": "John Doe", - "signed_at": 1570471067, + "is_signed": true, "signature_id": "a9f4825edef25f47e7b4c14ce8100d81d1693160" } ], diff --git a/translations/en.yaml b/translations/en.yaml index d1b9284a4..553da26d9 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1433,7 +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::SIGNED_AT": This field contains the signed at timestamp when the type is either signature or initial. +"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.