Skip to content

Commit d137cd4

Browse files
committed
sdk generation
1 parent a40aa71 commit d137cd4

File tree

31 files changed

+431
-22
lines changed

31 files changed

+431
-22
lines changed

sdks/dotnet/docs/SignatureRequestResponseDataValueInitials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional]
99
**Name** | **string** | The name of the form field. | [optional]
1010
**Required** | **bool** | A boolean value denoting if this field is required. | [optional]
11-
**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional]
11+
**Type** | **string** | An input field for initials | [optional] [default to "initials"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | _t__SignatureRequestResponseDataValue::IS_SIGNED | [optional]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1414

sdks/dotnet/docs/SignatureRequestResponseDataValueSignature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**SignatureId** | **string** | The ID of the signature to which this response is linked. | [optional]
99
**Name** | **string** | The name of the form field. | [optional]
1010
**Required** | **bool** | A boolean value denoting if this field is required. | [optional]
11-
**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional]
11+
**Type** | **string** | A signature input field | [optional] [default to "signature"]**Value** | **string** | The value of the form field. | [optional] **IsSigned** | **bool?** | _t__SignatureRequestResponseDataValue::IS_SIGNED | [optional]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1414

sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueInitials.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueInitials() { }
4343
/// </summary>
4444
/// <param name="type">An input field for initials (default to &quot;initials&quot;).</param>
4545
/// <param name="value">The value of the form field..</param>
46+
/// <param name="isSigned">_t__SignatureRequestResponseDataValue::IS_SIGNED.</param>
4647
/// <param name="apiId">The unique ID for this field..</param>
4748
/// <param name="signatureId">The ID of the signature to which this response is linked..</param>
4849
/// <param name="name">The name of the form field..</param>
4950
/// <param name="required">A boolean value denoting if this field is required..</param>
50-
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))
51+
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))
5152
{
5253
this.ApiId = apiId;
5354
this.SignatureId = signatureId;
@@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueInitials() { }
5758
// use default value if no "type" provided
5859
this.Type = type ?? "initials";
5960
this.Value = value;
61+
this.IsSigned = isSigned;
6062
}
6163

6264
/// <summary>
@@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueInitials Init(string jsonData)
8991
[DataMember(Name = "value", EmitDefaultValue = true)]
9092
public string Value { get; set; }
9193

94+
/// <summary>
95+
/// _t__SignatureRequestResponseDataValue::IS_SIGNED
96+
/// </summary>
97+
/// <value>_t__SignatureRequestResponseDataValue::IS_SIGNED</value>
98+
[DataMember(Name = "is_signed", EmitDefaultValue = true)]
99+
public bool? IsSigned { get; set; }
100+
92101
/// <summary>
93102
/// Returns the string presentation of the object
94103
/// </summary>
@@ -100,6 +109,7 @@ public override string ToString()
100109
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
101110
sb.Append(" Type: ").Append(Type).Append("\n");
102111
sb.Append(" Value: ").Append(Value).Append("\n");
112+
sb.Append(" IsSigned: ").Append(IsSigned).Append("\n");
103113
sb.Append("}\n");
104114
return sb.ToString();
105115
}
@@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueInitials input)
144154
this.Value == input.Value ||
145155
(this.Value != null &&
146156
this.Value.Equals(input.Value))
157+
) && base.Equals(input) &&
158+
(
159+
this.IsSigned == input.IsSigned ||
160+
(this.IsSigned != null &&
161+
this.IsSigned.Equals(input.IsSigned))
147162
);
148163
}
149164

@@ -164,6 +179,10 @@ public override int GetHashCode()
164179
{
165180
hashCode = (hashCode * 59) + this.Value.GetHashCode();
166181
}
182+
if (this.IsSigned != null)
183+
{
184+
hashCode = (hashCode * 59) + this.IsSigned.GetHashCode();
185+
}
167186
return hashCode;
168187
}
169188
}
@@ -208,6 +227,13 @@ public List<OpenApiType> GetOpenApiTypes()
208227
Type = "string",
209228
Value = Value,
210229
});
230+
types.Add(new OpenApiType()
231+
{
232+
Name = "is_signed",
233+
Property = "IsSigned",
234+
Type = "bool?",
235+
Value = IsSigned,
236+
});
211237

212238
return types;
213239
}

sdks/dotnet/src/Dropbox.Sign/Model/SignatureRequestResponseDataValueSignature.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ protected SignatureRequestResponseDataValueSignature() { }
4343
/// </summary>
4444
/// <param name="type">A signature input field (default to &quot;signature&quot;).</param>
4545
/// <param name="value">The value of the form field..</param>
46+
/// <param name="isSigned">_t__SignatureRequestResponseDataValue::IS_SIGNED.</param>
4647
/// <param name="apiId">The unique ID for this field..</param>
4748
/// <param name="signatureId">The ID of the signature to which this response is linked..</param>
4849
/// <param name="name">The name of the form field..</param>
4950
/// <param name="required">A boolean value denoting if this field is required..</param>
50-
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))
51+
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))
5152
{
5253
this.ApiId = apiId;
5354
this.SignatureId = signatureId;
@@ -57,6 +58,7 @@ protected SignatureRequestResponseDataValueSignature() { }
5758
// use default value if no "type" provided
5859
this.Type = type ?? "signature";
5960
this.Value = value;
61+
this.IsSigned = isSigned;
6062
}
6163

6264
/// <summary>
@@ -89,6 +91,13 @@ public static SignatureRequestResponseDataValueSignature Init(string jsonData)
8991
[DataMember(Name = "value", EmitDefaultValue = true)]
9092
public string Value { get; set; }
9193

94+
/// <summary>
95+
/// _t__SignatureRequestResponseDataValue::IS_SIGNED
96+
/// </summary>
97+
/// <value>_t__SignatureRequestResponseDataValue::IS_SIGNED</value>
98+
[DataMember(Name = "is_signed", EmitDefaultValue = true)]
99+
public bool? IsSigned { get; set; }
100+
92101
/// <summary>
93102
/// Returns the string presentation of the object
94103
/// </summary>
@@ -100,6 +109,7 @@ public override string ToString()
100109
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
101110
sb.Append(" Type: ").Append(Type).Append("\n");
102111
sb.Append(" Value: ").Append(Value).Append("\n");
112+
sb.Append(" IsSigned: ").Append(IsSigned).Append("\n");
103113
sb.Append("}\n");
104114
return sb.ToString();
105115
}
@@ -144,6 +154,11 @@ public bool Equals(SignatureRequestResponseDataValueSignature input)
144154
this.Value == input.Value ||
145155
(this.Value != null &&
146156
this.Value.Equals(input.Value))
157+
) && base.Equals(input) &&
158+
(
159+
this.IsSigned == input.IsSigned ||
160+
(this.IsSigned != null &&
161+
this.IsSigned.Equals(input.IsSigned))
147162
);
148163
}
149164

@@ -164,6 +179,10 @@ public override int GetHashCode()
164179
{
165180
hashCode = (hashCode * 59) + this.Value.GetHashCode();
166181
}
182+
if (this.IsSigned != null)
183+
{
184+
hashCode = (hashCode * 59) + this.IsSigned.GetHashCode();
185+
}
167186
return hashCode;
168187
}
169188
}
@@ -208,6 +227,13 @@ public List<OpenApiType> GetOpenApiTypes()
208227
Type = "string",
209228
Value = Value,
210229
});
230+
types.Add(new OpenApiType()
231+
{
232+
Name = "is_signed",
233+
Property = "IsSigned",
234+
Type = "bool?",
235+
Value = IsSigned,
236+
});
211237

212238
return types;
213239
}

sdks/java-v1/docs/SignatureRequestResponseDataValueInitials.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
|------------ | ------------- | ------------- | -------------|
1111
| `type` | ```String``` | An input field for initials | |
1212
| `value` | ```String``` | The value of the form field. | |
13+
| `isSigned` | ```Boolean``` | _t__SignatureRequestResponseDataValue::IS_SIGNED | |
1314

1415

1516

sdks/java-v1/docs/SignatureRequestResponseDataValueSignature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
|------------ | ------------- | ------------- | -------------|
1111
| `type` | ```String``` | A signature input field | |
1212
| `value` | ```String``` | The value of the form field. | |
13+
| `isSigned` | ```Boolean``` | _t__SignatureRequestResponseDataValue::IS_SIGNED | |
1314

1415

1516

sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueInitials.java

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
/** SignatureRequestResponseDataValueInitials */
2828
@JsonPropertyOrder({
2929
SignatureRequestResponseDataValueInitials.JSON_PROPERTY_TYPE,
30-
SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE
30+
SignatureRequestResponseDataValueInitials.JSON_PROPERTY_VALUE,
31+
SignatureRequestResponseDataValueInitials.JSON_PROPERTY_IS_SIGNED
3132
})
3233
@javax.annotation.Generated(
3334
value = "org.openapitools.codegen.languages.JavaClientCodegen",
@@ -47,6 +48,9 @@ public class SignatureRequestResponseDataValueInitials extends SignatureRequestR
4748
public static final String JSON_PROPERTY_VALUE = "value";
4849
private String value;
4950

51+
public static final String JSON_PROPERTY_IS_SIGNED = "is_signed";
52+
private Boolean isSigned;
53+
5054
public SignatureRequestResponseDataValueInitials() {}
5155

5256
/**
@@ -110,6 +114,28 @@ public void setValue(String value) {
110114
this.value = value;
111115
}
112116

117+
public SignatureRequestResponseDataValueInitials isSigned(Boolean isSigned) {
118+
this.isSigned = isSigned;
119+
return this;
120+
}
121+
122+
/**
123+
* _t__SignatureRequestResponseDataValue::IS_SIGNED
124+
*
125+
* @return isSigned
126+
*/
127+
@javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED)
128+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
129+
public Boolean getIsSigned() {
130+
return isSigned;
131+
}
132+
133+
@JsonProperty(JSON_PROPERTY_IS_SIGNED)
134+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
135+
public void setIsSigned(Boolean isSigned) {
136+
this.isSigned = isSigned;
137+
}
138+
113139
/** Return true if this SignatureRequestResponseDataValueInitials object is equal to o. */
114140
@Override
115141
public boolean equals(Object o) {
@@ -123,12 +149,13 @@ public boolean equals(Object o) {
123149
(SignatureRequestResponseDataValueInitials) o;
124150
return Objects.equals(this.type, signatureRequestResponseDataValueInitials.type)
125151
&& Objects.equals(this.value, signatureRequestResponseDataValueInitials.value)
152+
&& Objects.equals(this.isSigned, signatureRequestResponseDataValueInitials.isSigned)
126153
&& super.equals(o);
127154
}
128155

129156
@Override
130157
public int hashCode() {
131-
return Objects.hash(type, value, super.hashCode());
158+
return Objects.hash(type, value, isSigned, super.hashCode());
132159
}
133160

134161
@Override
@@ -138,6 +165,7 @@ public String toString() {
138165
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
139166
sb.append(" type: ").append(toIndentedString(type)).append("\n");
140167
sb.append(" value: ").append(toIndentedString(value)).append("\n");
168+
sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n");
141169
sb.append("}");
142170
return sb.toString();
143171
}
@@ -183,6 +211,26 @@ public Map<String, Object> createFormData() throws ApiException {
183211
map.put("value", JSON.getDefault().getMapper().writeValueAsString(value));
184212
}
185213
}
214+
if (isSigned != null) {
215+
if (isFileTypeOrListOfFiles(isSigned)) {
216+
fileTypeFound = true;
217+
}
218+
219+
if (isSigned.getClass().equals(java.io.File.class)
220+
|| isSigned.getClass().equals(Integer.class)
221+
|| isSigned.getClass().equals(String.class)
222+
|| isSigned.getClass().isEnum()) {
223+
map.put("is_signed", isSigned);
224+
} else if (isListOfFile(isSigned)) {
225+
for (int i = 0; i < getListSize(isSigned); i++) {
226+
map.put("is_signed[" + i + "]", getFromList(isSigned, i));
227+
}
228+
} else {
229+
map.put(
230+
"is_signed",
231+
JSON.getDefault().getMapper().writeValueAsString(isSigned));
232+
}
233+
}
186234
} catch (Exception e) {
187235
throw new ApiException(e);
188236
}

sdks/java-v1/src/main/java/com/dropbox/sign/model/SignatureRequestResponseDataValueSignature.java

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
/** SignatureRequestResponseDataValueSignature */
2828
@JsonPropertyOrder({
2929
SignatureRequestResponseDataValueSignature.JSON_PROPERTY_TYPE,
30-
SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE
30+
SignatureRequestResponseDataValueSignature.JSON_PROPERTY_VALUE,
31+
SignatureRequestResponseDataValueSignature.JSON_PROPERTY_IS_SIGNED
3132
})
3233
@javax.annotation.Generated(
3334
value = "org.openapitools.codegen.languages.JavaClientCodegen",
@@ -47,6 +48,9 @@ public class SignatureRequestResponseDataValueSignature extends SignatureRequest
4748
public static final String JSON_PROPERTY_VALUE = "value";
4849
private String value;
4950

51+
public static final String JSON_PROPERTY_IS_SIGNED = "is_signed";
52+
private Boolean isSigned;
53+
5054
public SignatureRequestResponseDataValueSignature() {}
5155

5256
/**
@@ -111,6 +115,28 @@ public void setValue(String value) {
111115
this.value = value;
112116
}
113117

118+
public SignatureRequestResponseDataValueSignature isSigned(Boolean isSigned) {
119+
this.isSigned = isSigned;
120+
return this;
121+
}
122+
123+
/**
124+
* _t__SignatureRequestResponseDataValue::IS_SIGNED
125+
*
126+
* @return isSigned
127+
*/
128+
@javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_SIGNED)
129+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
130+
public Boolean getIsSigned() {
131+
return isSigned;
132+
}
133+
134+
@JsonProperty(JSON_PROPERTY_IS_SIGNED)
135+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
136+
public void setIsSigned(Boolean isSigned) {
137+
this.isSigned = isSigned;
138+
}
139+
114140
/** Return true if this SignatureRequestResponseDataValueSignature object is equal to o. */
115141
@Override
116142
public boolean equals(Object o) {
@@ -124,12 +150,14 @@ public boolean equals(Object o) {
124150
(SignatureRequestResponseDataValueSignature) o;
125151
return Objects.equals(this.type, signatureRequestResponseDataValueSignature.type)
126152
&& Objects.equals(this.value, signatureRequestResponseDataValueSignature.value)
153+
&& Objects.equals(
154+
this.isSigned, signatureRequestResponseDataValueSignature.isSigned)
127155
&& super.equals(o);
128156
}
129157

130158
@Override
131159
public int hashCode() {
132-
return Objects.hash(type, value, super.hashCode());
160+
return Objects.hash(type, value, isSigned, super.hashCode());
133161
}
134162

135163
@Override
@@ -139,6 +167,7 @@ public String toString() {
139167
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
140168
sb.append(" type: ").append(toIndentedString(type)).append("\n");
141169
sb.append(" value: ").append(toIndentedString(value)).append("\n");
170+
sb.append(" isSigned: ").append(toIndentedString(isSigned)).append("\n");
142171
sb.append("}");
143172
return sb.toString();
144173
}
@@ -184,6 +213,26 @@ public Map<String, Object> createFormData() throws ApiException {
184213
map.put("value", JSON.getDefault().getMapper().writeValueAsString(value));
185214
}
186215
}
216+
if (isSigned != null) {
217+
if (isFileTypeOrListOfFiles(isSigned)) {
218+
fileTypeFound = true;
219+
}
220+
221+
if (isSigned.getClass().equals(java.io.File.class)
222+
|| isSigned.getClass().equals(Integer.class)
223+
|| isSigned.getClass().equals(String.class)
224+
|| isSigned.getClass().isEnum()) {
225+
map.put("is_signed", isSigned);
226+
} else if (isListOfFile(isSigned)) {
227+
for (int i = 0; i < getListSize(isSigned); i++) {
228+
map.put("is_signed[" + i + "]", getFromList(isSigned, i));
229+
}
230+
} else {
231+
map.put(
232+
"is_signed",
233+
JSON.getDefault().getMapper().writeValueAsString(isSigned));
234+
}
235+
}
187236
} catch (Exception e) {
188237
throw new ApiException(e);
189238
}

0 commit comments

Comments
 (0)