Skip to content

Commit 73c1823

Browse files
Regenerated SDKs
1 parent 86843f5 commit 73c1823

57 files changed

Lines changed: 2020 additions & 81 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdks/dotnet/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Class | Method | HTTP request | Description
199199
*TemplateApi* | [**TemplateGet**](docs/TemplateApi.md#templateget) | **GET** /template/{template_id} | Get Template
200200
*TemplateApi* | [**TemplateList**](docs/TemplateApi.md#templatelist) | **GET** /template/list | List Templates
201201
*TemplateApi* | [**TemplateRemoveUser**](docs/TemplateApi.md#templateremoveuser) | **POST** /template/remove_user/{template_id} | Remove User from Template
202-
*TemplateApi* | [**TemplateUpdate**](docs/TemplateApi.md#templateupdate) | **POST** /template/update/{template_id} | Edit Template
202+
*TemplateApi* | [**TemplateUpdate**](docs/TemplateApi.md#templateupdate) | **POST** /template/update/{template_id} | Update Template
203203
*TemplateApi* | [**TemplateUpdateFiles**](docs/TemplateApi.md#templateupdatefiles) | **POST** /template/update_files/{template_id} | Update Template Files
204204
*UnclaimedDraftApi* | [**UnclaimedDraftCreate**](docs/UnclaimedDraftApi.md#unclaimeddraftcreate) | **POST** /unclaimed_draft/create | Create Unclaimed Draft
205205
*UnclaimedDraftApi* | [**UnclaimedDraftCreateEmbedded**](docs/UnclaimedDraftApi.md#unclaimeddraftcreateembedded) | **POST** /unclaimed_draft/create_embedded | Create Embedded Unclaimed Draft
@@ -336,6 +336,7 @@ Class | Method | HTTP request | Description
336336
- [Model.SubTemplateRole](docs/SubTemplateRole.md)
337337
- [Model.SubUnclaimedDraftSigner](docs/SubUnclaimedDraftSigner.md)
338338
- [Model.SubUnclaimedDraftTemplateSigner](docs/SubUnclaimedDraftTemplateSigner.md)
339+
- [Model.SubUpdateFormField](docs/SubUpdateFormField.md)
339340
- [Model.SubWhiteLabelingOptions](docs/SubWhiteLabelingOptions.md)
340341
- [Model.TeamAddMemberRequest](docs/TeamAddMemberRequest.md)
341342
- [Model.TeamCreateRequest](docs/TeamCreateRequest.md)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Dropbox.Sign.Model.SubUpdateFormField
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**ApiId** | **string** | The unique ID for this field. The endpoint will update an existing field with matching `api_id`, and warn you if no matches are found | **Name** | **string** | The new name of the field. If not passed the name will remain unchanged. | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

sdks/dotnet/docs/TemplateApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
1414
| [**TemplateGet**](TemplateApi.md#templateget) | **GET** /template/{template_id} | Get Template |
1515
| [**TemplateList**](TemplateApi.md#templatelist) | **GET** /template/list | List Templates |
1616
| [**TemplateRemoveUser**](TemplateApi.md#templateremoveuser) | **POST** /template/remove_user/{template_id} | Remove User from Template |
17-
| [**TemplateUpdate**](TemplateApi.md#templateupdate) | **POST** /template/update/{template_id} | Edit Template |
17+
| [**TemplateUpdate**](TemplateApi.md#templateupdate) | **POST** /template/update/{template_id} | Update Template |
1818
| [**TemplateUpdateFiles**](TemplateApi.md#templateupdatefiles) | **POST** /template/update_files/{template_id} | Update Template Files |
1919

2020
<a id="templateadduser"></a>
@@ -1148,9 +1148,9 @@ catch (ApiException e)
11481148
# **TemplateUpdate**
11491149
> TemplateGetResponse TemplateUpdate (string templateId, TemplateUpdateRequest templateUpdateRequest)
11501150
1151-
Edit Template
1151+
Update Template
11521152

1153-
Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
1153+
Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
11541154

11551155
### Example
11561156
```csharp
@@ -1210,7 +1210,7 @@ This returns an ApiResponse object which contains the response data, status code
12101210
```csharp
12111211
try
12121212
{
1213-
// Edit Template
1213+
// Update Template
12141214
ApiResponse<TemplateGetResponse> response = apiInstance.TemplateUpdateWithHttpInfo(templateId, templateUpdateRequest);
12151215
Debug.Write("Status Code: " + response.StatusCode);
12161216
Debug.Write("Response Headers: " + response.Headers);

sdks/dotnet/docs/TemplateUpdateRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**CcRoles** | **List&lt;string&gt;** | The CC roles that must be assigned when using the template to send a signature request. | [optional] **AllowFormView** | **bool** | The CC roles that must be assigned when using the template to send a signature request. If set to `true` all the form fields on template document must have non-empty names. | [optional] **Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **Subject** | **string** | The new default template email subject. | [optional] **Message** | **string** | The new default template email message. | [optional]
7+
**CcRoles** | **List&lt;string&gt;** | The CC roles that must be assigned when using the template to send a signature request. | [optional] **AllowFormView** | **bool** | The CC roles that must be assigned when using the template to send a signature request. If set to `true` all the form fields on template document must have non-empty names. | [optional] **Title** | **string** | The title you want to assign to the SignatureRequest. | [optional] **Subject** | **string** | The new default template email subject. | [optional] **Message** | **string** | The new default template email message. | [optional] **FormFields** | [**List&lt;SubUpdateFormField&gt;**](SubUpdateFormField.md) | A list of document form fields to update. The endpoint will not create or remove any fields. Every field must be identified by `api_id`, and the only supported change is renaming the field. | [optional]
88

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

sdks/dotnet/src/Dropbox.Sign/Api/TemplateApi.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ public interface ITemplateApiSync : IApiAccessor
272272
/// <returns>ApiResponse of TemplateGetResponse</returns>
273273
ApiResponse<TemplateGetResponse> TemplateRemoveUserWithHttpInfo(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0);
274274
/// <summary>
275-
/// Edit Template
275+
/// Update Template
276276
/// </summary>
277277
/// <remarks>
278-
/// Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
278+
/// Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
279279
/// </remarks>
280280
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
281281
/// <param name="templateId">The ID of the template to update.</param>
@@ -285,10 +285,10 @@ public interface ITemplateApiSync : IApiAccessor
285285
TemplateGetResponse TemplateUpdate(string templateId, TemplateUpdateRequest templateUpdateRequest, int operationIndex = 0);
286286

287287
/// <summary>
288-
/// Edit Template
288+
/// Update Template
289289
/// </summary>
290290
/// <remarks>
291-
/// Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
291+
/// Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
292292
/// </remarks>
293293
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
294294
/// <param name="templateId">The ID of the template to update.</param>
@@ -595,10 +595,10 @@ public interface ITemplateApiAsync : IApiAccessor
595595
/// <returns>Task of ApiResponse (TemplateGetResponse)</returns>
596596
System.Threading.Tasks.Task<ApiResponse<TemplateGetResponse>> TemplateRemoveUserWithHttpInfoAsync(string templateId, TemplateRemoveUserRequest templateRemoveUserRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
597597
/// <summary>
598-
/// Edit Template
598+
/// Update Template
599599
/// </summary>
600600
/// <remarks>
601-
/// Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
601+
/// Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
602602
/// </remarks>
603603
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
604604
/// <param name="templateId">The ID of the template to update.</param>
@@ -609,10 +609,10 @@ public interface ITemplateApiAsync : IApiAccessor
609609
System.Threading.Tasks.Task<TemplateGetResponse> TemplateUpdateAsync(string templateId, TemplateUpdateRequest templateUpdateRequest, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
610610

611611
/// <summary>
612-
/// Edit Template
612+
/// Update Template
613613
/// </summary>
614614
/// <remarks>
615-
/// Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
615+
/// Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
616616
/// </remarks>
617617
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
618618
/// <param name="templateId">The ID of the template to update.</param>
@@ -2605,7 +2605,7 @@ public Dropbox.Sign.Client.ApiResponse<TemplateGetResponse> TemplateRemoveUserWi
26052605
}
26062606

26072607
/// <summary>
2608-
/// Edit Template Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
2608+
/// Update Template Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
26092609
/// </summary>
26102610
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
26112611
/// <param name="templateId">The ID of the template to update.</param>
@@ -2619,7 +2619,7 @@ public TemplateGetResponse TemplateUpdate(string templateId, TemplateUpdateReque
26192619
}
26202620

26212621
/// <summary>
2622-
/// Edit Template Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
2622+
/// Update Template Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
26232623
/// </summary>
26242624
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
26252625
/// <param name="templateId">The ID of the template to update.</param>
@@ -2704,7 +2704,7 @@ public Dropbox.Sign.Client.ApiResponse<TemplateGetResponse> TemplateUpdateWithHt
27042704
}
27052705

27062706
/// <summary>
2707-
/// Edit Template Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
2707+
/// Update Template Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
27082708
/// </summary>
27092709
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
27102710
/// <param name="templateId">The ID of the template to update.</param>
@@ -2719,7 +2719,7 @@ public Dropbox.Sign.Client.ApiResponse<TemplateGetResponse> TemplateUpdateWithHt
27192719
}
27202720

27212721
/// <summary>
2722-
/// Edit Template Edit template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
2722+
/// Update Template Update template fields. Every field is optional and the endpoint will only change whatever is provided. The fields not included in the request payload will remain unchanged.
27232723
/// </summary>
27242724
/// <exception cref="Dropbox.Sign.Client.ApiException">Thrown when fails to make API call</exception>
27252725
/// <param name="templateId">The ID of the template to update.</param>
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
/*
2+
* Dropbox Sign API
3+
*
4+
* Dropbox Sign v3 API
5+
*
6+
* The version of the OpenAPI document: 3.0.0
7+
* Contact: apisupport@hellosign.com
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
10+
11+
12+
using System;
13+
using System.Collections;
14+
using System.Collections.Generic;
15+
using System.Collections.ObjectModel;
16+
using System.Linq;
17+
using System.IO;
18+
using System.Runtime.Serialization;
19+
using System.Text;
20+
using System.Text.RegularExpressions;
21+
using Newtonsoft.Json;
22+
using Newtonsoft.Json.Converters;
23+
using Newtonsoft.Json.Linq;
24+
using System.ComponentModel.DataAnnotations;
25+
using OpenAPIDateConverter = Dropbox.Sign.Client.OpenAPIDateConverter;
26+
27+
namespace Dropbox.Sign.Model
28+
{
29+
/// <summary>
30+
/// SubUpdateFormField
31+
/// </summary>
32+
[DataContract(Name = "SubUpdateFormField")]
33+
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
34+
public partial class SubUpdateFormField : IEquatable<SubUpdateFormField>, IValidatableObject
35+
{
36+
/// <summary>
37+
/// Initializes a new instance of the <see cref="SubUpdateFormField" /> class.
38+
/// </summary>
39+
[JsonConstructorAttribute]
40+
protected SubUpdateFormField() { }
41+
/// <summary>
42+
/// Initializes a new instance of the <see cref="SubUpdateFormField" /> class.
43+
/// </summary>
44+
/// <param name="apiId">The unique ID for this field. The endpoint will update an existing field with matching &#x60;api_id&#x60;, and warn you if no matches are found (required).</param>
45+
/// <param name="name">The new name of the field. If not passed the name will remain unchanged..</param>
46+
public SubUpdateFormField(string apiId = default(string), string name = default(string))
47+
{
48+
49+
// to ensure "apiId" is required (not null)
50+
if (apiId == null)
51+
{
52+
throw new ArgumentNullException("apiId is a required property for SubUpdateFormField and cannot be null");
53+
}
54+
this.ApiId = apiId;
55+
this.Name = name;
56+
}
57+
58+
/// <summary>
59+
/// Attempt to instantiate and hydrate a new instance of this class
60+
/// </summary>
61+
/// <param name="jsonData">String of JSON data representing target object</param>
62+
public static SubUpdateFormField Init(string jsonData)
63+
{
64+
var obj = JsonConvert.DeserializeObject<SubUpdateFormField>(jsonData);
65+
66+
if (obj == null)
67+
{
68+
throw new Exception("Unable to deserialize JSON to instance of SubUpdateFormField");
69+
}
70+
71+
return obj;
72+
}
73+
74+
/// <summary>
75+
/// The unique ID for this field. The endpoint will update an existing field with matching &#x60;api_id&#x60;, and warn you if no matches are found
76+
/// </summary>
77+
/// <value>The unique ID for this field. The endpoint will update an existing field with matching &#x60;api_id&#x60;, and warn you if no matches are found</value>
78+
[DataMember(Name = "api_id", IsRequired = true, EmitDefaultValue = true)]
79+
public string ApiId { get; set; }
80+
81+
/// <summary>
82+
/// The new name of the field. If not passed the name will remain unchanged.
83+
/// </summary>
84+
/// <value>The new name of the field. If not passed the name will remain unchanged.</value>
85+
[DataMember(Name = "name", EmitDefaultValue = true)]
86+
public string Name { get; set; }
87+
88+
/// <summary>
89+
/// Returns the string presentation of the object
90+
/// </summary>
91+
/// <returns>String presentation of the object</returns>
92+
public override string ToString()
93+
{
94+
StringBuilder sb = new StringBuilder();
95+
sb.Append("class SubUpdateFormField {\n");
96+
sb.Append(" ApiId: ").Append(ApiId).Append("\n");
97+
sb.Append(" Name: ").Append(Name).Append("\n");
98+
sb.Append("}\n");
99+
return sb.ToString();
100+
}
101+
102+
/// <summary>
103+
/// Returns the JSON string presentation of the object
104+
/// </summary>
105+
/// <returns>JSON string presentation of the object</returns>
106+
public virtual string ToJson()
107+
{
108+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
109+
}
110+
111+
/// <summary>
112+
/// Returns true if objects are equal
113+
/// </summary>
114+
/// <param name="input">Object to be compared</param>
115+
/// <returns>Boolean</returns>
116+
public override bool Equals(object input)
117+
{
118+
return this.Equals(input as SubUpdateFormField);
119+
}
120+
121+
/// <summary>
122+
/// Returns true if SubUpdateFormField instances are equal
123+
/// </summary>
124+
/// <param name="input">Instance of SubUpdateFormField to be compared</param>
125+
/// <returns>Boolean</returns>
126+
public bool Equals(SubUpdateFormField input)
127+
{
128+
if (input == null)
129+
{
130+
return false;
131+
}
132+
return
133+
(
134+
this.ApiId == input.ApiId ||
135+
(this.ApiId != null &&
136+
this.ApiId.Equals(input.ApiId))
137+
) &&
138+
(
139+
this.Name == input.Name ||
140+
(this.Name != null &&
141+
this.Name.Equals(input.Name))
142+
);
143+
}
144+
145+
/// <summary>
146+
/// Gets the hash code
147+
/// </summary>
148+
/// <returns>Hash code</returns>
149+
public override int GetHashCode()
150+
{
151+
unchecked // Overflow is fine, just wrap
152+
{
153+
int hashCode = 41;
154+
if (this.ApiId != null)
155+
{
156+
hashCode = (hashCode * 59) + this.ApiId.GetHashCode();
157+
}
158+
if (this.Name != null)
159+
{
160+
hashCode = (hashCode * 59) + this.Name.GetHashCode();
161+
}
162+
return hashCode;
163+
}
164+
}
165+
166+
/// <summary>
167+
/// To validate all properties of the instance
168+
/// </summary>
169+
/// <param name="validationContext">Validation context</param>
170+
/// <returns>Validation Result</returns>
171+
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
172+
{
173+
yield break;
174+
}
175+
public List<OpenApiType> GetOpenApiTypes()
176+
{
177+
var types = new List<OpenApiType>();
178+
types.Add(new OpenApiType()
179+
{
180+
Name = "api_id",
181+
Property = "ApiId",
182+
Type = "string",
183+
Value = ApiId,
184+
});
185+
types.Add(new OpenApiType()
186+
{
187+
Name = "name",
188+
Property = "Name",
189+
Type = "string",
190+
Value = Name,
191+
});
192+
193+
return types;
194+
}
195+
}
196+
197+
}

0 commit comments

Comments
 (0)