Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ directory that corresponds to the file you want updated.
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 3.0.0
- SDK version: 2.3.0
- SDK version: 2.4.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.4.0
2 changes: 1 addition & 1 deletion docs/TemplateResponseDocumentFormFieldDropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**Width** | **int** | The width in pixels of this form field. | [optional]
**Height** | **int** | The height in pixels of this form field. | [optional]
**Required** | **bool** | Boolean showing whether or not this field is required. | [optional]
**Type** | **string** | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to "dropdown"]**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | [optional]
**Type** | **string** | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to "dropdown"]**Group** | **string** | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | [optional] **Options** | **List&lt;string&gt;** | The options available for this dropdown form field. | [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)

2 changes: 1 addition & 1 deletion openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ additionalProperties:
packageCompany: Dropbox Sign API Team
packageCopyright: Dropbox 2024
packageDescription: Client library for using the Dropbox Sign API
packageVersion: 2.3.0
packageVersion: 2.4.0
packageTitle: Dropbox Sign .Net SDK
sortModelPropertiesByRequiredFlag: true
optionalEmitDefaultValues: true
Expand Down
5 changes: 5 additions & 0 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13104,6 +13104,11 @@ components:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
nullable: true
options:
description: 'The options available for this dropdown form field.'
type: array
items:
type: string
type: object
TemplateResponseDocumentFormFieldHyperlink:
description: 'This class extends `TemplateResponseDocumentFormFieldBase`'
Expand Down
6 changes: 3 additions & 3 deletions src/Dropbox.Sign/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "2.3.0";
public const string Version = "2.4.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -120,7 +120,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/2.3.0/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/2.4.0/csharp");
BasePath = "https://api.hellosign.com/v3";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -567,7 +567,7 @@ public static string ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 3.0.0\n";
report += " SDK Package Version: 2.3.0\n";
report += " SDK Package Version: 2.4.0\n";

return report;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Dropbox.Sign/Dropbox.Sign.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Client library for using the Dropbox Sign API</Description>
<Copyright>Dropbox 2024</Copyright>
<RootNamespace>Dropbox.Sign</RootNamespace>
<Version>2.3.0</Version>
<Version>2.4.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml</DocumentationFile>
<RepositoryUrl>https://github.com/hellosign/dropbox-sign-dotnet.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { }
/// </summary>
/// <param name="type">The type of this form field. See [field types](/api/reference/constants/#field-types). * Text Field uses &#x60;TemplateResponseDocumentFormFieldText&#x60; * Dropdown Field uses &#x60;TemplateResponseDocumentFormFieldDropdown&#x60; * Hyperlink Field uses &#x60;TemplateResponseDocumentFormFieldHyperlink&#x60; * Checkbox Field uses &#x60;TemplateResponseDocumentFormFieldCheckbox&#x60; * Radio Field uses &#x60;TemplateResponseDocumentFormFieldRadio&#x60; * Signature Field uses &#x60;TemplateResponseDocumentFormFieldSignature&#x60; * Date Signed Field uses &#x60;TemplateResponseDocumentFormFieldDateSigned&#x60; * Initials Field uses &#x60;TemplateResponseDocumentFormFieldInitials&#x60; (required) (default to &quot;dropdown&quot;).</param>
/// <param name="group">The name of the group this field is in. If this field is not a group, this defaults to &#x60;null&#x60; except for Radio fields..</param>
/// <param name="options">The options available for this dropdown form field..</param>
/// <param name="apiId">A unique id for the form field..</param>
/// <param name="name">The name of the form field..</param>
/// <param name="signer">The signer of the Form Field..</param>
Expand All @@ -51,7 +52,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { }
/// <param name="width">The width in pixels of this form field..</param>
/// <param name="height">The height in pixels of this form field..</param>
/// <param name="required">Boolean showing whether or not this field is required..</param>
public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string group = default(string), string apiId = default(string), string name = default(string), Object signer = null, int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool))
public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string group = default(string), List<string> options = default(List<string>), string apiId = default(string), string name = default(string), Object signer = null, int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool))
{
this.ApiId = apiId;
this.Name = name;
Expand All @@ -69,6 +70,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { }
}
this.Type = type;
this.Group = group;
this.Options = options;
}

/// <summary>
Expand Down Expand Up @@ -101,6 +103,13 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData)
[DataMember(Name = "group", EmitDefaultValue = true)]
public string Group { get; set; }

/// <summary>
/// The options available for this dropdown form field.
/// </summary>
/// <value>The options available for this dropdown form field.</value>
[DataMember(Name = "options", EmitDefaultValue = true)]
public List<string> Options { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -112,6 +121,7 @@ public override string ToString()
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" Group: ").Append(Group).Append("\n");
sb.Append(" Options: ").Append(Options).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -156,6 +166,12 @@ public bool Equals(TemplateResponseDocumentFormFieldDropdown input)
this.Group == input.Group ||
(this.Group != null &&
this.Group.Equals(input.Group))
) && base.Equals(input) &&
(
this.Options == input.Options ||
this.Options != null &&
input.Options != null &&
this.Options.SequenceEqual(input.Options)
);
}

Expand All @@ -176,6 +192,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.Group.GetHashCode();
}
if (this.Options != null)
{
hashCode = (hashCode * 59) + this.Options.GetHashCode();
}
return hashCode;
}
}
Expand Down Expand Up @@ -220,6 +240,13 @@ public List<OpenApiType> GetOpenApiTypes()
Type = "string",
Value = Group,
});
types.Add(new OpenApiType()
{
Name = "options",
Property = "Options",
Type = "List<string>",
Value = Options,
});

return types;
}
Expand Down
Loading