diff --git a/README.md b/README.md index 27f7845..b5a93a7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/VERSION b/VERSION index 276cbf9..197c4d5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.0 +2.4.0 diff --git a/docs/TemplateResponseDocumentFormFieldDropdown.md b/docs/TemplateResponseDocumentFormFieldDropdown.md index 62b9123..d374b05 100644 --- a/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -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).

* Text Field uses `TemplateResponseDocumentFormFieldText`
* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentFormFieldRadio`
* Signature Field uses `TemplateResponseDocumentFormFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`
* 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).

* Text Field uses `TemplateResponseDocumentFormFieldText`
* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentFormFieldRadio`
* Signature Field uses `TemplateResponseDocumentFormFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`
* 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<string>** | 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) diff --git a/openapi-config.yaml b/openapi-config.yaml index 0dc6ca1..a884081 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -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 diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index ac9e788..576b442 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -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`' diff --git a/src/Dropbox.Sign/Client/Configuration.cs b/src/Dropbox.Sign/Client/Configuration.cs index a818cbb..ed2e350 100644 --- a/src/Dropbox.Sign/Client/Configuration.cs +++ b/src/Dropbox.Sign/Client/Configuration.cs @@ -36,7 +36,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "2.3.0"; + public const string Version = "2.4.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -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(); ApiKey = new ConcurrentDictionary(); @@ -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; } diff --git a/src/Dropbox.Sign/Dropbox.Sign.csproj b/src/Dropbox.Sign/Dropbox.Sign.csproj index 5305f16..9f65948 100644 --- a/src/Dropbox.Sign/Dropbox.Sign.csproj +++ b/src/Dropbox.Sign/Dropbox.Sign.csproj @@ -12,7 +12,7 @@ Client library for using the Dropbox Sign API Dropbox 2024 Dropbox.Sign - 2.3.0 + 2.4.0 bin\$(Configuration)\$(TargetFramework)\Dropbox.Sign.xml https://github.com/hellosign/dropbox-sign-dotnet.git git diff --git a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index b167023..0e84b54 100644 --- a/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -43,6 +43,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// /// The type of this form field. See [field types](/api/reference/constants/#field-types). * Text Field uses `TemplateResponseDocumentFormFieldText` * Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown` * Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink` * Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox` * Radio Field uses `TemplateResponseDocumentFormFieldRadio` * Signature Field uses `TemplateResponseDocumentFormFieldSignature` * Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned` * Initials Field uses `TemplateResponseDocumentFormFieldInitials` (required) (default to "dropdown"). /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. + /// The options available for this dropdown form field.. /// A unique id for the form field.. /// The name of the form field.. /// The signer of the Form Field.. @@ -51,7 +52,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// The width in pixels of this form field.. /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. - 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 options = default(List), 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; @@ -69,6 +70,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } } this.Type = type; this.Group = group; + this.Options = options; } /// @@ -101,6 +103,13 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// + /// The options available for this dropdown form field. + /// + /// The options available for this dropdown form field. + [DataMember(Name = "options", EmitDefaultValue = true)] + public List Options { get; set; } + /// /// Returns the string presentation of the object /// @@ -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(); } @@ -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) ); } @@ -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; } } @@ -220,6 +240,13 @@ public List GetOpenApiTypes() Type = "string", Value = Group, }); + types.Add(new OpenApiType() + { + Name = "options", + Property = "Options", + Type = "List", + Value = Options, + }); return types; }